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 |
*IList |
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. |
ImageTag |
ImageTag? | The optional tag attached to the image. |
| Method | Description |
|---|---|
ImageData |
The constructor. |
Bytes
The image data content in a byte array.
IList<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; }
ImageTag
The optional tag attached to the image.
public ImageTag? ImageTag { get; set; }
Remarks
- Introduced in Dynamsoft Capture Vision version 3.6.5000.
ImageData
The constructor.
ImageData(byte[] bytes, int width, int height, int stride, EnumImagePixelFormat format, int orientation);
public ImageData(IList<byte> bytes, int width, int height, int stride,
EnumImagePixelFormat format, int orientation, ImageTag? imageTag);
The imageTag argument is required and may be null if there is no tag attached to the image.
Remarks
- The constructor accepting
imageTagwas introduced in Dynamsoft Capture Vision version 3.6.5000.