lt.monarch.image.png
Class PNGEncoderJavaIO
java.lang.Object
lt.monarch.image.AbstractEncoder
lt.monarch.image.png.PNGEncoderJavaIO
- All Implemented Interfaces:
- java.io.Serializable
public class PNGEncoderJavaIO
extends AbstractEncoder
Implements PNG encoding using JavaIO library
- See Also:
- Serialized Form
Method Summary
void |
encode(java.awt.Image _image,
java.io.OutputStream outputStream)
|
java.lang.String |
getContentType()
Returns content type string |
void |
setPhysicalDimension(int xPixelsPerInch,
int yPixelsPerInch)
Sets DPI (dots per inch) of resulting image. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PNGEncoderJavaIO
public PNGEncoderJavaIO()
encode
public void encode(java.awt.Image _image,
java.io.OutputStream outputStream)
throws java.io.IOException,
java.lang.InterruptedException
- Specified by:
encode in class AbstractEncoder
- Throws:
java.io.IOException
java.lang.InterruptedException
getContentType
public java.lang.String getContentType()
- Description copied from class:
AbstractEncoder
- Returns content type string
- Specified by:
getContentType in class AbstractEncoder
setPhysicalDimension
public void setPhysicalDimension(int xPixelsPerInch,
int yPixelsPerInch)
- Sets DPI (dots per inch) of resulting image.
- Parameters:
xPixelsPerInch - number of pixels per inch (horizontal dimension)yPixelsPerInch - number of pixels per inch (vertical dimension)