ImageSize

ImageSize(int, int)

Initializes width and height to the given values in pixels. Initializes resolution to 96 dpi.

public ImageSize(int widthPixels, int heightPixels)
ParameterTypeDescription
widthPixelsInt32Width in pixels.
heightPixelsInt32Height in pixels.

See Also


ImageSize(int, int, double, double)

Initializes width, height and resolution to the given values.

public ImageSize(int widthPixels, int heightPixels, double horizontalResolution, 
    double verticalResolution)
ParameterTypeDescription
widthPixelsInt32Width in pixels.
heightPixelsInt32Height in pixels.
horizontalResolutionDoubleHorizontal resolution in DPI.
verticalResolutionDoubleVertical resolution in DPI.

See Also