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

◆ bitmap() [13/14]

xtd::drawing::bitmap::bitmap ( int32  width,
int32  height,
int32  stride,
xtd::drawing::imaging::pixel_format  format,
intptr  scan0 
)

Initializes a new instance of the xtd::drawing::bitmap class with the specified size.

Parameters
widthThe width, in pixels, of the new bitmap.
heightThe height, in pixels, of the new bitmap.
strideInteger that specifies the byte offset between the beginning of one scan line and the next. This is usually (but not necessarily) the number of bytes in the pixel format (for example, 2 for 16 bits per pixel) multiplied by the width of the bitmap. The value passed to this parameter must be a multiple of four.
formatThe pixel format for the new xtd::drawing::bitmap class with the specified size and format.
scan0Pointer to an array of bytes that contains the pixel data.