danger.ui
Class Bitmap.FromResource

java.lang.Object
  extended by danger.ui.Bitmap
      extended by danger.ui.Bitmap.FromResource
Enclosing class:
Bitmap


public static class Bitmap.FromResource
extends Bitmap

Bitmaps that come from resources are instances of this subclass of Bitmap. It is often more memory-efficient to hold the ResourceDatabase the bitmap came from ask it for the bitmap as needed than to hold a reference to the bitmap itself.


Nested Class Summary
 
Nested classes/interfaces inherited from class danger.ui.Bitmap
Bitmap.FromResource
 
Field Summary
 
Fields inherited from class danger.ui.Bitmap
COMPOSE_ALPHA, COPYBITS_ALPHA, COPYBITS_ALPHA_MASK, COPYBITS_CLAMP_TRANSPARENCY, COPYBITS_FLAGS_MASK, COPYBITS_INTERPOLATED, COPYBITS_INVERTED, COPYBITS_NORMAL_BLIT, COPYBITS_SRCOVER, COPYBITS_SRCOVER_TRANS, DONT_PRESERVE_TRANSPARENCY, NO_COMPOSE_ALPHA, PALETTE_BGR16, PALETTE_BGR16_ALPHA, PALETTE_BGR16_OFFSET, PALETTE_FLAGS_MASK, PALETTE_NONE, PALETTE_RGB16_LE, PALETTE_RGB16_LE_ALPHA, PALETTE_RGB16_LE_OFFSET, PALETTE_SIZE_MASK, PRESERVE_TRANSPARENCY
 
Method Summary
 int getID()
          Return's this Bitmap's resource ID.
 ResourceDatabase getResourceDatabase()
          Returns the ResourceDatabase associated with this Bitmap.
 
Methods inherited from class danger.ui.Bitmap
canDrawInverted, cloneAndFlipX, cloneAndFlipY, convertToScreenColorSpace, convertToScreenColorSpace, convertToScreenColorSpace, convertToScreenColorSpace, copy, copy, copy, copyBits, copyBits, copyBitsInterpolated, copyBitsTo, copyInterpolated, copyRotated, copyScaled, createOptimalBitmap, createPen, createPen, flatten, flipX, flipY, getColorSpace, getFlattenedSize, getHeight, getPalette, getPaletteFlags, getPaletteOffset, getPaletteSize, getPixels, getPoint, getPoint, getStride, getTransparentColor, getTransparentColorRGB, getWidth, isGrayscale, mirror, newFromEncodedData, newFromFlattenedData, newFromJPEGData, newFromPNGData, replaceColor, replacePaletteColor, replacePaletteColors, rotateBy, scaleTo, setPalette, setPixels, setTo, setTransparentColor, setTransparentColorRGB, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getResourceDatabase

public ResourceDatabase getResourceDatabase()
Returns the ResourceDatabase associated with this Bitmap.

Returns:
the resource database

getID

public int getID()
Return's this Bitmap's resource ID.

Returns:
the ID