什么是StretchBlt用于绘制HBITMAP的更高质量的替代品? [英] What would be a higher quality alternative to StretchBlt for drawing an HBITMAP?

查看:187
本文介绍了什么是StretchBlt用于绘制HBITMAP的更高质量的替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于速度问题,我不想使用GDI +的DrawImage。还有哪些其他方法可以绘制具有良好质量的图像大小 - 至少是线性或三次插值?

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?

推荐答案

您可以使用< a href =http://msdn.microsoft.com/en-us/library/dd145089%28v=vs.85%29.aspx =nofollow> SetStretchBltMode 使用 HALFTONE 设置,但您可能遇到与GDI +相同的速度问题 - 平滑总是需要付出代价。

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.

这篇关于什么是StretchBlt用于绘制HBITMAP的更高质量的替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆