摘要:
这几天修改旧项目,在原来MFC封装框架之上添加PNG透明支持。使用GDI+中的 Image 和 Graphics 类的画图方法:Status DrawImage( [in] Image *image, [in] INT x, [in] INT y, [in] INT srcx, [in] INT srcy, [in] INT srcwidth, [in] INT srcheight, [in] Unit srcUnit);发现画出的某些图片(具体是某些旧项目下面的BMP图片)比实际尺寸大,但是调用Image类方法GetWidth()和GetHeight()返回的尺寸是正确的。解... 阅读全文