public class AwtBitmap
extends java.lang.Object
implements org.mapsforge.core.graphics.Bitmap
| Constructor and Description |
|---|
AwtBitmap(java.awt.image.BufferedImage bufferedImage) |
AwtBitmap(java.io.InputStream inputStream) |
AwtBitmap(int width,
int height) |
AwtBitmap(int width,
int height,
boolean hasAlpha) |
| Modifier and Type | Method and 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) |
public AwtBitmap(java.io.InputStream inputStream)
throws java.io.IOException
java.io.IOExceptionpublic AwtBitmap(int width,
int height)
public AwtBitmap(int width,
int height,
boolean hasAlpha)
public AwtBitmap(java.awt.image.BufferedImage bufferedImage)
public void compress(java.io.OutputStream outputStream)
throws java.io.IOException
compress in interface org.mapsforge.core.graphics.Bitmapjava.io.IOExceptionpublic void decrementRefCount()
decrementRefCount in interface org.mapsforge.core.graphics.Bitmappublic int getHeight()
getHeight in interface org.mapsforge.core.graphics.Bitmappublic int getWidth()
getWidth in interface org.mapsforge.core.graphics.Bitmappublic void incrementRefCount()
incrementRefCount in interface org.mapsforge.core.graphics.Bitmappublic boolean isDestroyed()
isDestroyed in interface org.mapsforge.core.graphics.Bitmappublic void scaleTo(int width,
int height)
scaleTo in interface org.mapsforge.core.graphics.Bitmappublic void setBackgroundColor(int color)
setBackgroundColor in interface org.mapsforge.core.graphics.Bitmap