Package org.mapsforge.map.awt.graphics
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 java.lang.Object implements org.mapsforge.core.graphics.Bitmap
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compress(java.io.OutputStream outputStream)
void
decrementRefCount()
int
getHeight()
int
getWidth()
void
incrementRefCount()
boolean
isDestroyed()
void
scaleTo(int width, int height)
void
setBackgroundColor(int color)
-
-
-
Constructor Detail
-
AwtBitmap
public AwtBitmap(java.io.InputStream inputStream) throws java.io.IOException
- Throws:
java.io.IOException
-
AwtBitmap
public AwtBitmap(int width, int height)
-
AwtBitmap
public AwtBitmap(int width, int height, boolean hasAlpha)
-
AwtBitmap
public AwtBitmap(java.awt.image.BufferedImage bufferedImage)
-
-
Method Detail
-
compress
public void compress(java.io.OutputStream outputStream) throws java.io.IOException
- Specified by:
compress
in interfaceorg.mapsforge.core.graphics.Bitmap
- Throws:
java.io.IOException
-
decrementRefCount
public void decrementRefCount()
- Specified by:
decrementRefCount
in interfaceorg.mapsforge.core.graphics.Bitmap
-
getHeight
public int getHeight()
- Specified by:
getHeight
in interfaceorg.mapsforge.core.graphics.Bitmap
-
getWidth
public int getWidth()
- Specified by:
getWidth
in interfaceorg.mapsforge.core.graphics.Bitmap
-
incrementRefCount
public void incrementRefCount()
- Specified by:
incrementRefCount
in interfaceorg.mapsforge.core.graphics.Bitmap
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyed
in interfaceorg.mapsforge.core.graphics.Bitmap
-
scaleTo
public void scaleTo(int width, int height)
- Specified by:
scaleTo
in interfaceorg.mapsforge.core.graphics.Bitmap
-
setBackgroundColor
public void setBackgroundColor(int color)
- Specified by:
setBackgroundColor
in interfaceorg.mapsforge.core.graphics.Bitmap
-
-