|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.util.image.BufferedImageEncoder
public final class BufferedImageEncoder
BufferedImageEncoder generates BufferedImages from Flash image definitions.
| Constructor Summary | |
|---|---|
BufferedImageEncoder()
|
|
| Method Summary | |
|---|---|
BufferedImage |
getBufferedImage()
Create a BufferedImage from the decoded Flash image. |
int |
getHeight()
Get the height of the image. |
byte[] |
getImage()
Get the array of bytes that make up the image. |
int |
getWidth()
Get the width of the image. |
BufferedImage |
resizeImage(BufferedImage bufferedImg,
int imgWidth,
int imgHeight)
Resizes a BufferedImage to the specified width and height. |
void |
setImage(DefineImage definition)
Decode a DefineImage definition. |
void |
setImage(DefineImage2 definition)
Decode a DefineImage2 definition. |
void |
setImage(ImageTag definition)
Decode an ImageTeg definition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferedImageEncoder()
| Method Detail |
|---|
public void setImage(ImageTag definition)
throws DataFormatException
definition - a DefineImage object.
DataFormatException - if there is a problem decoding the image definition.
public void setImage(DefineImage definition)
throws DataFormatException
definition - a DefineImage object.
DataFormatException - if there is a problem decoding the image definition.
public void setImage(DefineImage2 definition)
throws DataFormatException
definition - a DefineImage2 object.
DataFormatException - if there is a problem decoding the image definition.public int getWidth()
public int getHeight()
public byte[] getImage()
public BufferedImage getBufferedImage()
public BufferedImage resizeImage(BufferedImage bufferedImg,
int imgWidth,
int imgHeight)
bufferedImg - the BufferedImage to resize.imgWidth - the width of the resized image in pixels.imgHeight - the height of the resized image in pixels.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||