Set the resolution of the bitmap to a certain dimension or area. Changing the resolution does not change content in the Bitmap - the scale is left unchanged.
Syntax

[C#]

void SetResolution(double hres, double vres);
void SetResolution(SizeF res);

[Visual Basic]

Sub SetResolution(hres As Double, vres As Double)
Sub SetResolution(res As SizeF)
Params
Name Description
hres The horizontal resolution of the image in Dots Per Inch (DPI).
vres The vertical resolution of the image in Dots Per Inch (DPI).
size The horizontal and vertical resolution of the image in Dots Per Inch (DPI).
Notes

None.

See Also

Resize

Example

None.