ImageData
The ImageData
class represents image data, which contains the image bytes, width, height, stride, pixel format, orientation and a tag.
Definition
Namespace: Dynamsoft.Core.Maui
Assembly: Dynamsoft.Core.Maui
class ImageData
Methods & Properties
Property | Type | Description |
---|---|---|
Bytes |
byte[] | The image data content in a byte array. |
Width |
int | The width of the image in pixels. |
Height |
int | The height of the image in pixels. |
Stride |
int | The stride (or scan width) of the image. |
Format |
EnumImagePixelFormat | The image pixel format used in the image byte array. |
Orientation |
int | The orientation information of the image. The library is able to read the orientation information from the EXIF data of the image file. |
Method | Description |
---|---|
ImageData |
The constructor. |
Bytes
The image data content in a byte array.
byte[] Bytes { get; set; }
Width
The width of the image in pixels.
int Width { get; set; }
Height
The height of the image in pixels.
int Height { get; set; }
Stride
The stride (or scan width) of the image.
int Stride { get; set; }
Format
The image pixel format used in the image byte array, defined in the EnumImagePixelFormat
.
EnumImagePixelFormat Format { get; set; }
Orientation
The orientation information of the image. The library is able to read the orientation information from the EXIF data of the image file.
int Orientation { get; set; }
ImageData
The constructor.
ImageData(byte[] bytes, int width, int height, int stride, EnumImagePixelFormat format, int orientation);