public final class MIImage
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
MIImage()
A default constructor
|
MIImage(android.graphics.Bitmap bitmap)
Creates the
MIImage object given the Bitmap object |
MIImage(MIImage other)
Creates a copy of the
MIImage object |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Explicitly destroys the data
|
protected void |
finalize() |
MISize |
getSize()
Returns the image size in pixels
|
android.graphics.Bitmap |
toBitmap(android.graphics.Bitmap.Config config,
int sampleSize)
Converts the image into the android bitmap object
|
public MIImage()
public MIImage(MIImage other)
MIImage objectother - - the MIImage objectpublic MIImage(android.graphics.Bitmap bitmap)
MIImage object given the Bitmap objectbitmap - - The Bitmap objectpublic void destroy()
public android.graphics.Bitmap toBitmap(android.graphics.Bitmap.Config config,
int sampleSize)
config - - The Bitmap.Config value that describes the format in which pixels are storedsampleSize - - The value bigger than 1 specifies the number of pixels in either dimension that correspond to a single pixel in the result bitmap.
Any value less than 1 is treated as 1Bitmap objectBitmapFactory.Options.inSampleSizepublic MISize getSize()
protected void finalize()
finalize in class java.lang.Object