Class AwtBitmap

java.lang.Object
org.mapsforge.map.awt.graphics.AwtBitmap
All Implemented Interfaces:
org.mapsforge.core.graphics.Bitmap
Direct Known Subclasses:
AwtHillshadingBitmap, AwtResourceBitmap, AwtTileBitmap

public class AwtBitmap extends Object implements org.mapsforge.core.graphics.Bitmap
  • Constructor Details

    • AwtBitmap

      public AwtBitmap(InputStream inputStream) throws IOException
      Throws:
      IOException
    • AwtBitmap

      public AwtBitmap(int width, int height)
    • AwtBitmap

      public AwtBitmap(int width, int height, boolean hasAlpha)
    • AwtBitmap

      public AwtBitmap(BufferedImage bufferedImage)
  • Method Details

    • compress

      public void compress(OutputStream outputStream) throws IOException
      Specified by:
      compress in interface org.mapsforge.core.graphics.Bitmap
      Throws:
      IOException
    • decrementRefCount

      public void decrementRefCount()
      Specified by:
      decrementRefCount in interface org.mapsforge.core.graphics.Bitmap
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface org.mapsforge.core.graphics.Bitmap
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface org.mapsforge.core.graphics.Bitmap
    • incrementRefCount

      public void incrementRefCount()
      Specified by:
      incrementRefCount in interface org.mapsforge.core.graphics.Bitmap
    • isDestroyed

      public boolean isDestroyed()
      Specified by:
      isDestroyed in interface org.mapsforge.core.graphics.Bitmap
    • scaleTo

      public void scaleTo(int width, int height)
      Specified by:
      scaleTo in interface org.mapsforge.core.graphics.Bitmap
    • setBackgroundColor

      public void setBackgroundColor(int color)
      Specified by:
      setBackgroundColor in interface org.mapsforge.core.graphics.Bitmap