BitmapExtractor

public final class BitmapExtractor

Utility for extracting Bitmap from MlImage.

Currently it only supports MlImage with MlImage.STORAGE_TYPE_BITMAP, otherwise IllegalArgumentException will be thrown.

Public Methods

static Bitmap
extract(MlImage image)
Extracts a Bitmap from an MlImage.

Inherited Methods

Public Methods

public static Bitmap extract (MlImage image)

Extracts a Bitmap from an MlImage.

Notice: Properties of the image like rotation will not take effects.

Parameters
image the image to extract Bitmap from.
Returns
Throws
IllegalArgumentException when the extraction requires unsupported format or data type conversions.