Package com.artifex.solib
Class ArDkBitmap
java.lang.Object
com.artifex.solib.ArDkBitmap
- All Implemented Interfaces:
Comparable<ArDkBitmap>
- Direct Known Subclasses:
MuPDFBitmap,SOBitmap
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPixel formats supported for output by SmartOffice. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected android.graphics.Bitmapprotected android.graphics.Rectprotected intprotected static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidallocateBitmap(int w, int h, ArDkBitmap.Type type) intUsed to order ArDkBitmap objects in ordered CollectionscreateBitmap(int x0, int y0, int x1, int y1) create a new bitmap representing a portion of this bitmap.static android.graphics.Bitmap.Configstatic ArDkBitmap.Typevoiddispose()Recycle the bitmap within the ArDkBitmap Intended to be called just before the ArDkBitmap reference is set to nullandroid.graphics.BitmapGet the Android bitmap that underlies this ArDkBitmap.intRead the current height of this bitmap.android.graphics.RectgetRect()Get the subrectangle of the underlying Android Bitmap that corresponds to this ArDkBitmap.intreturn the serial numberintgetWidth()Read the current width of this bitmap.
-
Field Details
-
serialBase
protected static int serialBase -
serial
protected int serial -
bitmap
protected android.graphics.Bitmap bitmap -
rect
protected android.graphics.Rect rect
-
-
Constructor Details
-
ArDkBitmap
public ArDkBitmap() -
ArDkBitmap
public ArDkBitmap(android.graphics.Bitmap bitmap)
-
-
Method Details
-
allocateBitmap
-
defaultType
-
defaultConfig
public static android.graphics.Bitmap.Config defaultConfig() -
getBitmap
public android.graphics.Bitmap getBitmap()Get the Android bitmap that underlies this ArDkBitmap.- Returns:
- the android bitmap that underlies this ArDkBitmap.
-
getRect
public android.graphics.Rect getRect()Get the subrectangle of the underlying Android Bitmap that corresponds to this ArDkBitmap.- Returns:
- subrectangle of the underlying Android Bitmap that corresponds to this ArDkBitmap.
-
getWidth
public int getWidth()Read the current width of this bitmap.- Returns:
- The width of the ArDkBitmap.
- Note:
- If we ever move to an implementation using adjustAspectForSize, then this value may change. Best to code for this case initially.
-
getHeight
public int getHeight()Read the current height of this bitmap.- Returns:
- The height of the ArDkBitmap.
- Note:
- If we ever move to an implementation using adjustAspectForSize, then this value may change. Best to code for this case initially.
-
compareTo
Used to order ArDkBitmap objects in ordered Collections- Specified by:
compareToin interfaceComparable<ArDkBitmap>
-
dispose
public void dispose()Recycle the bitmap within the ArDkBitmap Intended to be called just before the ArDkBitmap reference is set to null -
getSerial
public int getSerial()return the serial number -
createBitmap
create a new bitmap representing a portion of this bitmap. real implementations are found in SOBitmap and MuPdfBitmap
-