public class ArDkBitmap extends java.lang.Object implements java.lang.Comparable<ArDkBitmap>
Modifier and Type | Class and Description |
---|---|
static class |
ArDkBitmap.Type
Pixel formats supported for output by SmartOffice.
|
Modifier and Type | Field and Description |
---|---|
protected android.graphics.Bitmap |
bitmap |
protected android.graphics.Rect |
rect |
protected int |
serial |
protected static int |
serialBase |
Constructor and Description |
---|
ArDkBitmap() |
ArDkBitmap(android.graphics.Bitmap bitmap) |
Modifier and Type | Method and Description |
---|---|
protected void |
allocateBitmap(int w,
int h,
ArDkBitmap.Type type) |
int |
compareTo(ArDkBitmap o)
Used to order ArDkBitmap objects in ordered Collections
|
ArDkBitmap |
createBitmap(int x0,
int y0,
int x1,
int y1)
create a new bitmap representing a portion of this bitmap.
|
static android.graphics.Bitmap.Config |
defaultConfig() |
static ArDkBitmap.Type |
defaultType() |
void |
dispose()
Recycle the bitmap within the ArDkBitmap
Intended to be called just before the ArDkBitmap reference is set to null
|
android.graphics.Bitmap |
getBitmap()
Get the Android bitmap that underlies this ArDkBitmap.
|
int |
getHeight()
Read the current height of this bitmap.
|
android.graphics.Rect |
getRect()
Get the subrectangle of the underlying Android Bitmap that corresponds to this ArDkBitmap.
|
int |
getSerial()
return the serial number
|
int |
getWidth()
Read the current width of this bitmap.
|
protected static int serialBase
protected int serial
protected android.graphics.Bitmap bitmap
protected android.graphics.Rect rect
public ArDkBitmap()
public ArDkBitmap(android.graphics.Bitmap bitmap)
protected void allocateBitmap(int w, int h, ArDkBitmap.Type type)
public static ArDkBitmap.Type defaultType()
public static android.graphics.Bitmap.Config defaultConfig()
public android.graphics.Bitmap getBitmap()
public android.graphics.Rect getRect()
public int getWidth()
public int getHeight()
public int compareTo(ArDkBitmap o)
compareTo
in interface java.lang.Comparable<ArDkBitmap>
public void dispose()
public int getSerial()
public ArDkBitmap createBitmap(int x0, int y0, int x1, int y1)