BitmapImage Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
Initializes a BitmapImage instance with the specified data, width, height and stride.
protected BitmapImage (byte[] data, int width, int height, int stride);
new Iot.Device.Graphics.BitmapImage : byte[] * int * int * int -> Iot.Device.Graphics.BitmapImage
Protected Sub New (data As Byte(), width As Integer, height As Integer, stride As Integer)
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 |
Initializes a BitmapImage instance with the specified data, width, height and stride.
protected BitmapImage (int width, int height, int stride, Iot.Device.Graphics.PixelFormat pixelFormat);
new Iot.Device.Graphics.BitmapImage : int * int * int * Iot.Device.Graphics.PixelFormat -> Iot.Device.Graphics.BitmapImage
Protected Sub New (width As Integer, height As Integer, stride As Integer, pixelFormat As 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 |