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
-
Constructor Summary
ConstructorsConstructorDescriptionAwtBitmap(int width, int height) AwtBitmap(int width, int height, boolean hasAlpha) AwtBitmap(BufferedImage bufferedImage) AwtBitmap(InputStream inputStream) -
Method Summary
Modifier and TypeMethodDescriptionvoidcompress(OutputStream outputStream) voidintintgetWidth()voidbooleanvoidscaleTo(int width, int height) voidsetBackgroundColor(int color)
-
Constructor Details
-
AwtBitmap
- Throws:
IOException
-
AwtBitmap
public AwtBitmap(int width, int height) -
AwtBitmap
public AwtBitmap(int width, int height, boolean hasAlpha) -
AwtBitmap
-
-
Method Details
-
compress
- Specified by:
compressin interfaceorg.mapsforge.core.graphics.Bitmap- Throws:
IOException
-
decrementRefCount
public void decrementRefCount()- Specified by:
decrementRefCountin interfaceorg.mapsforge.core.graphics.Bitmap
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceorg.mapsforge.core.graphics.Bitmap
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceorg.mapsforge.core.graphics.Bitmap
-
incrementRefCount
public void incrementRefCount()- Specified by:
incrementRefCountin interfaceorg.mapsforge.core.graphics.Bitmap
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceorg.mapsforge.core.graphics.Bitmap
-
scaleTo
public void scaleTo(int width, int height) - Specified by:
scaleToin interfaceorg.mapsforge.core.graphics.Bitmap
-
setBackgroundColor
public void setBackgroundColor(int color) - Specified by:
setBackgroundColorin interfaceorg.mapsforge.core.graphics.Bitmap
-