BitmapImage Constructors

Definition

Overloads

BitmapImage(Byte[], Int32, Int32, Int32)

Initializes a BitmapImage instance with the specified data, width, height and stride.

BitmapImage(Int32, Int32, Int32, PixelFormat)

Initializes a BitmapImage instance with the specified data, width, height and stride.

BitmapImage(Byte[], Int32, Int32, Int32)

Initializes a BitmapImage instance with the specified data, width, height and stride.

C#
protected BitmapImage (byte[] data, int width, int height, int stride);

Parameters

data
Byte[]

Data representing the image (derived class defines a specific format)

width
Int32

Width of the image

height
Int32

Height of the image

stride
Int32

Number of bytes per row

Applies to

.NET IoT Libraries 2.1.0 a ďalšie verzie
Produkt Verzie
.NET IoT Libraries 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0

BitmapImage(Int32, Int32, Int32, PixelFormat)

Initializes a BitmapImage instance with the specified data, width, height and stride.

C#
protected BitmapImage (int width, int height, int stride, Iot.Device.Graphics.PixelFormat pixelFormat);

Parameters

width
Int32

Width of the image

height
Int32

Height of the image

stride
Int32

Number of bytes per row

pixelFormat
PixelFormat

The pixel format of the data

Applies to

.NET IoT Libraries 2.2.0
Produkt Verzie
.NET IoT Libraries 2.2.0