拉伸位图无抗锯齿 [英] Stretch Bitmap without anti-aliasing
本文介绍了拉伸位图无抗锯齿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发现这个例子,并用它<一个href=\"http://stackoverflow.com/questions/1082884/how-do-you-resize-a-bitmap-under-net-cf-2-0/1082890#1082890\">http://stackoverflow.com/questions/1082884/how-do-you-resize-a-bitmap-under-net-cf-2-0/1082890#1082890
I found this example and used it http://stackoverflow.com/questions/1082884/how-do-you-resize-a-bitmap-under-net-cf-2-0/1082890#1082890
不过我的图像看起来是因为抗锯齿的可怕。因为它应该它看起来不再像素化。如何禁用抗锯齿?
However my image looks horrible because of anti aliasing. It no longer looks pixelated as it should. How do i disable anti aliasing?
推荐答案
设置插值模式近邻:
g.InterPolationMode = InterpolationMode.NearestNeighbor
这篇关于拉伸位图无抗锯齿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文