public class
BitmapImageBuilder
You can pass in either mutable or immutable Bitmap
. However once
Bitmap
is passed in, to keep data integrity you shouldn't modify content
in it.
Use BitmapExtractor
to get Bitmap
you passed in.
Public Constructors
BitmapImageBuilder(Bitmap bitmap)
Creates the builder with a mandatory
Bitmap . |
|
BitmapImageBuilder(Context context, Uri uri)
Creates the builder to build
MPImage from a file. |
Public Methods
MPImage |
Inherited Methods
Public Constructors
public BitmapImageBuilder (Bitmap bitmap)
Creates the builder with a mandatory Bitmap
.
Parameters
bitmap | image data object. |
---|
public BitmapImageBuilder (Context context, Uri uri)
Creates the builder to build MPImage
from a file.
Parameters
context | the application context. |
---|---|
uri | the path to the resource file. |
Throws
IOException |
---|