layout | title | description | keywords | needAutoGenerateSidebar | needGenerateH3Content | noTitleIndex | permalink |
---|---|---|---|---|---|---|---|
default-layout |
Dynamsoft Core Android Class - ImageData |
This page shows the ImageData Class of Dynamsoft Core for Android Language. |
ImageData, android |
true |
true |
true |
/programming/android/api-reference/image-data.html |
You are viewing a history document page of Dynamsoft Label Recognizer Android v2.2.20.
Stores the image data.
class com.dynamsoft.core.ImageData
Attribute | Type |
---|---|
bytes |
byte[] |
width |
int |
height |
int |
stride |
int |
format |
[EnumImagePixelFormat ]({{ site.enumerations }}image-pixel-format.html?src=android) |
orientation |
int |
| Methods | Type |
| toBitmap
| Convert ImageData
to android.graphics.Bitmap
. |
The image data content in a byte array.
byte[] bytes
The width of the image in pixels.
int width
The height of the image in pixels.
int height
The stride (or scan width) of the image.
int stride
The image pixel format used in the image byte array.
EnumImagePixelFormat format
The orientation of the image.
int orientation
Convert ImageData
to android.graphics.Bitmap
.
Bitmap toBitmap() throws CoreException