ImageData
Interface ImageData 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-react-native
interface ImageData
Properties & Methods
| Property | Type | Description |
|---|---|---|
bytes |
ArrayBuffer | Represents the raw bytes of the image. |
width |
number | Represents the width of the image in pixels. |
height |
number | Represents the height of the image in pixels. |
orientation |
number | Represents the orientation of the image as an angle. |
format |
EnumImagePixelFormat | Represents the pixel format of the image as a EnumImagePixelFormat. |
stride |
number | Represents the number of bytes in a single row of the image. |
| Method | Description |
|---|---|
release |
Release the native memory. Data cannot be used after release. |
bytes
Represents the raw bytes of the image.
buffer: ArrayBuffer;
width
Represents the width of the image in pixels.
width: number;
height
Represents the height of the image in pixels.
height: number;
orientation
Represents the orientation of the image as an angle.
orientation: number;
format
Represents the pixel format of the image as a EnumImagePixelFormat.
format: EnumPixelFormat | number;
stride
Represents the number of bytes in a single row of the image.
stride: number;
release
Release the native memory. Data cannot be used after release.
release(): void;