BitmapExtractor

public final class BitmapExtractor

Utility for extracting Bitmap from MPImage.

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

Public Methods

static Bitmap
extract(MPImage image)
Extracts a Bitmap from a MPImage.

Inherited Methods

Public Methods

public static Bitmap extract (MPImage image)

Extracts a Bitmap from a MPImage.

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