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

元气小坏坏 提交于 2019-12-23 09:05:04

问题


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.



来源:https://stackoverflow.com/questions/4572886/what-would-be-a-higher-quality-alternative-to-stretchblt-for-drawing-an-hbitmap

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