SetInterpolationMode控制图形的缩放质量

 
  1. Status Graphics::SetInterpolationMode(IN InterpolationMode interpolationMode)  
  2.   
  3.   
  4. enum InterpolationMode  
  5. {  
  6.     InterpolationModeInvalid          = QualityModeInvalid,    //插值无效  
  7.     InterpolationModeDefault          = QualityModeDefault,    //指定默认模式  
  8.     InterpolationModeLowQuality       = QualityModeLow,        //指定低质量插值法  
  9.     InterpolationModeHighQuality      = QualityModeHigh,       //指定高质量插值法  
  10.     InterpolationModeBilinear,                                 //指定双线性插值法  
  11.     InterpolationModeBicubic,                                  //指定双三次插值法  
  12.     InterpolationModeNearestNeighbor,                          //指定最临近插值法  
  13.     InterpolationModeHighQualityBilinear,                      //指定高质量双线性插值法  
  14.     InterpolationModeHighQualityBicubic                        //指定高质量双三次插值法  
  15. };  


使用插补模式控制图形的缩放质量:
Graphics对象的插补模式影响着GDI+对图像缩放的质量,
InterpolationModeHighQualityBicubic最好效果,当然对系统资源的消耗也最大
在每次DrawImage中调用.
posted on 2013-09-03 13:07  言止予思  阅读(274)  评论(0)    收藏  举报