InterpolationMode 枚举指定缩放或旋转图像时使用的算法。 此枚举由 Graphics 类的 Graphics::GetInterpolationMode 和 Graphics::SetInterpolationMode 方法使用。
语法
typedef enum InterpolationMode {
InterpolationModeInvalid,
InterpolationModeDefault,
InterpolationModeLowQuality,
InterpolationModeHighQuality,
InterpolationModeBilinear,
InterpolationModeBicubic,
InterpolationModeNearestNeighbor,
InterpolationModeHighQualityBilinear,
InterpolationModeHighQualityBicubic
} ;
常量
InterpolationModeInvalid在内部使用 |
InterpolationModeDefault指定默认内插模式。 |
InterpolationModeLowQuality指定低质量模式。 |
InterpolationModeHighQuality指定高质量模式。 |
InterpolationModeBilinear指定双线性插值法。 不进行预筛选。 将图像收缩为原始大小的 50% 以下时,此模式不适用。 |
InterpolationModeBicubic指定双三次插值法。 不进行预筛选。 将图像收缩为原始大小的 25% 以下时,此模式不适用。 |
InterpolationModeNearestNeighbor指定最临近插值法。 |
InterpolationModeHighQualityBilinear指定高质量的双线性插值法。 执行预筛选以确保高质量的收缩。 |
InterpolationModeHighQualityBicubic指定高质量的双三次插值法。 执行预筛选以确保高质量的收缩。 此模式可产生质量最高的转换图像。 |
要求
| 最低受支持的客户端 | Windows XP、Windows 2000 Professional [仅限桌面应用] |
| 最低受支持的服务器 | Windows 2000 Server [仅限桌面应用] |
| 标头 | gdiplusenums.h (包括 Gdiplus.h) |