摘要: 2010-12-03 11:08:53|分类: SQl+delphi |标签: |字号大中小订阅Graphics 单元新增了 TWICImage 类, 该类的功能源于新增的 Wincodec.pas 单元., `* y0 a; E4 _7 l# H9 w' ~" `1 |# U4 {$ @) Y2 |; I1 k7 Q WIC(Windows Imaging Component) 是 Windows 为 Vista 和 WPF 提供的用于图像编码、解码的 COM 组件, 但在 XP 下也能使用它.* l( T5 `l+ C4 I8 @% o2 V3 m! T' h&# 阅读全文
posted @ 2011-08-13 22:43 魏来的星 阅读(969) 评论(0) 推荐(0) 编辑
摘要: TWICImage 的 Width、Height 属性, 可以读取但不能赋值. 调整 TWICImage 的大小、比例, 可以通过 IWICBitmapScaler 接口.//IWICBitmapScaler.Initialize 函数有四种比例变换的算法:WICBitmapInterpolationModeNearestNeighbor = 0;WICBitmapInterpolationModeLinear = $1;WICBitmapInterpolationModeCubic = $2;WICBitmapInterpolationModeFant = $3;测试代码:unit Unit 阅读全文
posted @ 2011-08-13 21:55 魏来的星 阅读(405) 评论(0) 推荐(0) 编辑