问题
I need to change the DPI of the System.Drawing.Bitmap object from the default value = 96 to e.g. 150. I couldn't find the answer how to do that so I ask here :)
回答1:
Bitmap result = new Bitmap(width, height);
result.SetResolution(dpi, dpi);
来源:https://stackoverflow.com/questions/2682292/c-sharp-winforms-how-to-change-dpi-of-the-system-drawing-bitmap