.NET: What does Graphics.DrawImageUnscaled do?

两盒软妹~` 提交于 2019-11-27 23:36:41

Well Graphics.DrawImageUnscaled Method (Image, Int32, Int32) doesn't do anything different than DrawImage (Image, Int32, Int32)

e.g.

public void DrawImageUnscaled(Image image, int x, int y)
{
    this.DrawImage(image, x, y);
}

However the methods that take in a Height, Width or a rectangle are different. Those methods either ignore the height and width or with the rectangle only use the top and left.

My guess is that DrawImageUnscaled Method (Image, Int32, Int32) exists for parity reasons and doesn't have to do with scaling due to dpi difference in the source and target device.

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