Click or drag to resize

Bitmap Constructor (Int32, Int32, PixelFormat, IEnumerableColor)

Creates a new bitmap with the specified dimensions, format and pixel data

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public Bitmap(
	int width,
	int height,
	PixelFormat pixelFormat,
	IEnumerable<Color> data
)

Parameters

width
Type: SystemInt32
Width of the bitmap
height
Type: SystemInt32
Height of the bitmap
pixelFormat
Type: Eto.DrawingPixelFormat
Format of each pixel
data
Type: System.Collections.GenericIEnumerableColor
Color data enumeration, starting from top-left of the bitmap and width*height length
See Also