xtd 0.2.0
Loading...
Searching...
No Matches

◆ bitmap() [11/14]

xtd::drawing::bitmap::bitmap ( int32  width,
int32  height,
const graphics g 
)

Initializes a new instance of the xtd::drawing::bitmap class with the specified size and with the resolution of the specified xtd::drawing::raphics object.

Parameters
widthThe width, in pixels, of the new bitmap.
heightThe height, in pixels, of the new bitmap.
gThe Graphics object that specifies the resolution for the new Bitmap.
Remarks
The new xtd::drawing::bitmap that this method creates takes its horizontal and vertical resolution from the xtd::drawing::graphics::dpi_x and xtd::drawing::graphics::dpi_y properties of g, respectively.