SetResolution()

Bitmap::SetResolution(float, float) method

Sets the resolution of the image.

void System::Drawing::Bitmap::SetResolution(float xDpi, float yDpi)

Arguments

ParameterTypeDescription
xDpifloatThe new horizontal resolution in pixels per inch.
yDpifloatThe new vertical resolution in pixels per inch.

See Also