目录

HmsScanFrame

Class Info

public class HmsScanFrame

扫码图像封装类,包含了图像类别等内容。

Public Constructor Summary

Constructor name

HmsScanFrame(Bitmap bitmap)

HmsScanFrame的支持Bitmap图像的构造方法。

HmsScanFrame(YuvImage yuvImage)

HmsScanFrame的支持YUV图像的构造方法。当前仅支持NV21格式。

Public Method Summary

Qualifier and Type

Method Name and Description

Bitmap

getBitmap()

调用Bitmap图像的构造方法后获取Bitmap图像。

int

getHeight()

获取图像高度。

int

getWidth()

获取图像宽度。

YuvImage

getYuvImage()

调用YUV图像的构造方法后获取YuvImage对象。

Public Constructors

[h2]HmsScanFrame(Bitmap bitmap)

Constructor

public HmsScanFrame(Bitmap bitmap)

HmsScanFrame的支持Bitmap的构造方法。

Parameters

Name

Description

bitmap

条码图像信息。

[h2]HmsScanFrame(YuvImage yuvImage)

Constructor

public HmsScanFrame(YuvImage yuvImage)

HmsScanFrame的支持YUV图像的构造方法。当前仅支持NV21格式。

Parameters

Name

Description

yuvImage

条码图像YUV数据。

Public Methods

[h2]getBitmap

Method

public Bitmap getBitmap()

获取Bitmap图像信息。

Returns

Type

Description

Bitmap

解码帧。

[h2]getHeight

Method

public int getHeight()

获取图像高度。

Returns

Type

Description

int

图像高度。

[h2]getWidth

Method

public int getWidth()

获取图像宽度。

Returns

Type

Description

int

图像宽度。

[h2]getYuvImage

Method

public YuvImage getYuvImage()

获取YuvImage对象。

Returns

Type

Description

YuvImage

YuvImage对象。