A www.Sockets4.NET class library

ImageCanvas Constructor (Int32, Int32, Graphics)

Initializes a new instance of the ImageCanvas class with the specified size and with the resolution of the specified Graphics object.

public ImageCanvas(
   int width,
   int height,
   Graphics graphics
);

Parameters

width
The width, in pixels, of the new ImageCanvas object.
height
The height, in pixels, of the new ImageCanvas object.
graphics
The Graphics object that specifies the resolution for the new ImageCanvas object.

Remarks

The new ImageCanvas object that this method creates takes its horizontal and vertical resolution from the DpiX and DpiY properties of g, respectively.

See Also

ImageCanvas Class | Sockets4Images Namespace | ImageCanvas Constructor Overload List