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 voidcompress(java.io.OutputStream outputStream)voiddecrementRefCount()intgetHeight()intgetWidth()voidincrementRefCount()booleanisDestroyed()voidscaleTo(int width, int height)voidsetBackgroundColor(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:
compressin interfaceorg.mapsforge.core.graphics.Bitmap- Throws:
java.io.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
-
-