Stay organized with collections Save and categorize content based on your preferences.
public final class BitmapExtractor extends Object

Utility for extracting Bitmap from MlImage.

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

Public Method Summary

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

Inherited Method Summary

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.

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