扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:adding 来源:yesky 2007年11月16日
关键字:
Graphics graphics( pDC->m_hDC ); Image image(L"log.gif"); UINT width = image.GetWidth(); UINT height = image.GetHeight(); // 不进行缩放 graphics.DrawImage( &image,10,10); // 使用低质量的插补算法 graphics.SetInterpolationMode(InterpolationModeNearestNeighbor); graphics.DrawImage( &image, Rect(170, 30, (INT)(0.6*width), (INT)(0.6*height))); // 使用中等质量的插补算法 graphics.SetInterpolationMode(InterpolationModeHighQualityBilinear); graphics.DrawImage( &image, Rect(270, 30, (INT)(0.6*width), (INT)(0.6*height))); // 使用高质量的插补算法 graphics.SetInterpolationMode(InterpolationModeHighQualityBicubic); graphics.DrawImage( &image, Rect(370, 30, (INT)(0.6*width), (INT)(0.6*height))); |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。