Resize bitmap like in MS Paint

后端 未结 6 1653
北恋
北恋 2021-01-20 12:23

I need to resize a bmp like the resize works in MS Paint - that is with no antialiasing . Anyone know how to do this in c# or vb.net ?

6条回答
  •  春和景丽
    2021-01-20 12:45

    You can use the Image.GetThumbnailImage method. I am not aware of it antialiasing.

    EDIT: I was thinking of thumbnail images since I recently used this in a project. But you are just asking for resizing in general. This method may not result in good quality large resizing.

    http://msdn.microsoft.com/en-us/library/system.drawing.image.getthumbnailimage.aspx

提交回复
热议问题