What would be a higher quality alternative to StretchBlt for drawing an HBITMAP?

匿名 (未验证) 提交于 2019-12-03 00:52:01

问题:

I don't want to use GDI+'s DrawImage because of speed issues. What other ways are there to draw an image resized with decent quality - at least linear or cubic interpolation?

回答1:

You can use SetStretchBltMode with the HALFTONE setting, but you'll probably run into the same speed issues that you faced with GDI+ -- smoothing always comes at a cost.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!