Status Graphics::SetInterpolationMode(IN InterpolationMode interpolationMode)
enum InterpolationMode
{
InterpolationModeInvalid = QualityModeInvalid, //插值无效
InterpolationModeDefault = QualityModeDefault, //指定默认模式
InterpolationModeLowQuality = QualityModeLow, //指定低质量插值法
InterpolationModeHighQuality = QualityModeHigh, //指定高质量插值法
InterpolationModeBilinear, //指定双线性插值法
InterpolationModeBicubic, //指定双三次插值法
InterpolationModeNearestNeighbor, //指定最临近插值法
InterpolationModeHighQualityBilinear, //指定高质量双线性插值法
InterpolationModeHighQualityBicubic //指定高质量双三次插值法
};
使用插补模式控制图形的缩放质量:
Graphics对象的插补模式影响着GDI+对图像缩放的质量,
InterpolationModeHighQualityBicubic最好效果,当然对系统资源的消耗也最大
在每次DrawImage中调用.