Class ArDkBitmap

java.lang.Object
com.artifex.solib.ArDkBitmap
All Implemented Interfaces:
Comparable<ArDkBitmap>
Direct Known Subclasses:
MuPDFBitmap, SOBitmap

public class ArDkBitmap extends Object implements Comparable<ArDkBitmap>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Pixel formats supported for output by SmartOffice.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected android.graphics.Bitmap
     
    protected android.graphics.Rect
     
    protected int
     
    protected static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ArDkBitmap(android.graphics.Bitmap bitmap)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    allocateBitmap(int w, int h, ArDkBitmap.Type type)
     
    int
    Used to order ArDkBitmap objects in ordered Collections
    createBitmap(int x0, int y0, int x1, int y1)
    create a new bitmap representing a portion of this bitmap.
    static android.graphics.Bitmap.Config
     
     
    void
    Recycle the bitmap within the ArDkBitmap Intended to be called just before the ArDkBitmap reference is set to null
    android.graphics.Bitmap
    Get the Android bitmap that underlies this ArDkBitmap.
    int
    Read the current height of this bitmap.
    android.graphics.Rect
    Get the subrectangle of the underlying Android Bitmap that corresponds to this ArDkBitmap.
    int
    return the serial number
    int
    Read the current width of this bitmap.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      protected void allocateBitmap(int w, int h, ArDkBitmap.Type type)
    • defaultType

      public static ArDkBitmap.Type 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

      public int compareTo(ArDkBitmap o)
      Used to order ArDkBitmap objects in ordered Collections
      Specified by:
      compareTo in interface Comparable<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

      public ArDkBitmap createBitmap(int x0, int y0, int x1, int y1)
      create a new bitmap representing a portion of this bitmap. real implementations are found in SOBitmap and MuPdfBitmap