public class JPGWriter extends ImageWriter
Constructor and Description |
---|
JPGWriter() |
JPGWriter(ImageParam param) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getCMYK_ICC_Profile() |
ImageType |
getImageType() |
protected void |
write(int[] pixels,
int imageWidth,
int imageHeight,
java.io.OutputStream os)
The actual image writing method to be implemented by any specific ImageWriter subclass
|
void |
writeDefaultJPEGTables(java.io.OutputStream os)
Write default JPEG tables for TIFF image only.
|
getImageParam, setImageParam, write
public JPGWriter()
public JPGWriter(ImageParam param)
public byte[] getCMYK_ICC_Profile()
public ImageType getImageType()
getImageType
in class ImageWriter
protected void write(int[] pixels, int imageWidth, int imageHeight, java.io.OutputStream os) throws java.lang.Exception
ImageWriter
write
in class ImageWriter
pixels
- input image array in ARGB formatimageWidth
- image widthimageHeight
- image heightos
- OutputSteam to write the imagejava.lang.Exception
public void writeDefaultJPEGTables(java.io.OutputStream os) throws java.lang.Exception
java.lang.Exception