Stretch Bitmap without anti-aliasing

主宰稳场 提交于 2019-12-08 10:26:31

问题


I found this example and used it How do you resize a Bitmap under .NET CF 2.0

However my image looks horrible because of anti aliasing. It no longer looks pixelated as it should. How do i disable anti aliasing?


回答1:


Set the interpolation mode to nearest neighbor:

g.InterPolationMode = InterpolationMode.NearestNeighbor


来源:https://stackoverflow.com/questions/1096553/stretch-bitmap-without-anti-aliasing

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