开发者

C# winforms: How to change DPI of the System.Drawing.BItmap?

开发者 https://www.devze.com 2022-12-27 11:30 出处:网络
I need to change the DPI of the System.Drawing.Bitmap object from the default value = 96 to e.g. 150. I couldn\'t fin开发者_StackOverflowd the answer how to do that so I ask here :)Bitmap result = new

I need to change the DPI of the System.Drawing.Bitmap object from the default value = 96 to e.g. 150. I couldn't fin开发者_StackOverflowd the answer how to do that so I ask here :)


Bitmap result = new Bitmap(width, height);
result.SetResolution(dpi, dpi);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号