public interface ImageFormatter
Modifier and Type | Method and Description |
---|---|
byte[] |
formatImage(java.awt.image.BufferedImage bi)
Convert a BufferedImage to a image file format...
|
java.awt.image.BufferedImage |
getBufferedImage()
Return the BufferedImage contained within the formatter.
|
java.lang.String |
getContentType()
Get the Mime Content Type created by the ImageFormatter.
|
java.lang.String |
getFormatLabel()
Get the Image Type created by the ImageFormatter.
|
java.awt.Graphics |
getGraphics(int width,
int height)
Return the applicable Graphics to use to paint the layers into.
|
java.awt.Graphics |
getGraphics(int width,
int height,
boolean alpha) |
byte[] |
getImageBytes()
Return the image bytes of the formatted image.
|
byte[] |
getImageFromMapBean(MapBean map)
Take a MapBean, and get the image bytes that represent the
current state.
|
java.awt.image.BufferedImage |
getScaledBufferedImage(int scaledWidth,
int scaledHeight)
Scale the internal BufferedImage to the pixel dimensions, and
then return it.
|
byte[] |
getScaledImageBytes(int scaledWidth,
int scaledHeight)
Scale the internal BufferedImage, then return the image bytes
of the formatted image.
|
ImageFormatter |
makeClone()
Create a new instance of the same type of formatter.
|
void |
setBufferedImage(java.awt.image.BufferedImage bi)
Return the BufferedImage contained within the formatter.
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Set the properties of the image formatter.
|
void setProperties(java.lang.String prefix, java.util.Properties props)
ImageFormatter makeClone()
byte[] formatImage(java.awt.image.BufferedImage bi)
bi
- a BufferedImage..byte[] getImageFromMapBean(MapBean map)
map
- the MapBean.java.awt.Graphics getGraphics(int width, int height)
width
- pixel width of Graphics.height
- pixel height of Graphics.java.awt.Graphics getGraphics(int width, int height, boolean alpha)
java.awt.image.BufferedImage getBufferedImage()
void setBufferedImage(java.awt.image.BufferedImage bi)
bi
- the BufferedImage to use in this formatter.java.awt.image.BufferedImage getScaledBufferedImage(int scaledWidth, int scaledHeight)
scaledWidth
- the desired pixel width of the image.scaledHeight
- the desired pixel height of the image.byte[] getImageBytes()
byte[] getScaledImageBytes(int scaledWidth, int scaledHeight)
scaledWidth
- the desired pixel width of the image.scaledHeight
- the desired pixel height of the image.java.lang.String getFormatLabel()
java.lang.String getContentType()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details