Class Info |
|---|
public class HmsScanFrame Class encapsulating the scanned image information, which includes the image format. |
Constructor name |
|---|
HmsScanFrame(Bitmap bitmap) HmsScanFrame constructor that supports images encoded in bitmap. |
HmsScanFrame(YuvImage yuvImage) HmsScanFrame constructor that supports images encoded in YUV. Currently, only the NV21 format is supported. |
Qualifier and Type | Method Name and Description |
|---|---|
Bitmap | Obtains a bitmap image after calling HmsScanFrame(Bitmap bitmap). |
int | Obtains the image height. |
int | getWidth() Obtains the image width. |
YuvImage | Obtains a YuvImage object after calling HmsScanFrame(YuvImage yuvImage). |
Constructor |
|---|
public HmsScanFrame(Bitmap bitmap) HmsScanFrame constructor that supports images encoded in bitmap. |
Parameters
Name | Description |
|---|---|
bitmap | Data of the bitmap image. |
Constructor |
|---|
public HmsScanFrame(YuvImage yuvImage) HmsScanFrame constructor that supports images encoded in YUV. Currently, only the NV21 format is supported. |
Parameters
Name | Description |
|---|---|
yuvImage | Data of the YUV image. |
Method |
|---|
public Bitmap getBitmap() Obtains the bitmap image information. |
Returns
Type | Description |
|---|---|
Bitmap | Bitmap image information. |
Method |
|---|
public int getHeight() Obtains the image height. |
Returns
Type | Description |
|---|---|
int | Image height. |