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.IOException
public 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.Bitmap
java.io.IOException
public void decrementRefCount()
decrementRefCount
in interface org.mapsforge.core.graphics.Bitmap
public int getHeight()
getHeight
in interface org.mapsforge.core.graphics.Bitmap
public int getWidth()
getWidth
in interface org.mapsforge.core.graphics.Bitmap
public void incrementRefCount()
incrementRefCount
in interface org.mapsforge.core.graphics.Bitmap
public boolean isDestroyed()
isDestroyed
in interface org.mapsforge.core.graphics.Bitmap
public void scaleTo(int width, int height)
scaleTo
in interface org.mapsforge.core.graphics.Bitmap
public void setBackgroundColor(int color)
setBackgroundColor
in interface org.mapsforge.core.graphics.Bitmap