ImageData
The ImageData class encapsulates all of an image’s data, as well as metadata. It is used to represent an image, and the image’s data can then be used for further operations such as analysis, viewing, or saving.
Definition
Assembly: dynamsoft_capture_vision_flutter
class ImageData
Constructors
ImageData({
required this.bytes,
required this.width,
required this.height,
required this.orientation,
required this.format,
required this.stride,
});
Properties
| Property | Type | Description |
|---|---|---|
bytes |
Uint8List | Represents the raw bytes of the image. |
width |
int | Represents the width of the image in pixels. |
height |
int | Represents the height of the image in pixels. |
orientation |
int | Represents the orientation of the image as an angle. |
format |
EnumImagePixelFormat | Represents the pixel format of the image as a EnumImagePixelFormat. |
stride |
int | Represents the number of bytes in a single row of the image. |
bytes
Represents the raw bytes of the image.
Uint8List bytes;
width
Represents the width of the image in pixels.
int width;
height
Represents the height of the image in pixels.
int height;
orientation
Represents the orientation of the image as an angle.
int orientation;
format
Represents the pixel format of the image as a EnumImagePixelFormat.
EnumImagePixelFormat format;
stride
Represents the number of bytes in a single row of the image.
int stride;