|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.crionics.jpdf.graphic.AbstractImage
com.crionics.jpdf.graphic.ImageJPEG
public class ImageJPEG
This Class allows to load and Process an JPEG Image before its insertion in a
PDF Document.
Note: The Codecs used to access the image are the one provided by the Java
API.
| Field Summary |
|---|
| Fields inherited from class com.crionics.jpdf.graphic.AbstractImage |
|---|
FLIP_NONE, FLIP_X, FLIP_XY, FLIP_Y, SCALE_MODEL_AVERAGE, SCALE_MODEL_FAST, SCALE_MODEL_SMOOTH, TYPE_GENERIC, TYPE_JPEG |
| Constructor Summary | |
|---|---|
ImageJPEG(java.awt.image.BufferedImage img)
|
|
| Method Summary | |
|---|---|
int |
getType()
|
void |
setQuality(float q)
Sets the Encoding Quality Factor for the JPEG. |
void |
writeToStream(java.io.OutputStream outStream)
Writes the content of the image in the specified OutputStream. |
| Methods inherited from class com.crionics.jpdf.graphic.AbstractImage |
|---|
convertTo, ensureHasAlphaChannel, flip, flush, getHeight, getImage, getImageTransformed, getImageTransformed, getWidth, scale |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageJPEG(java.awt.image.BufferedImage img)
| Method Detail |
|---|
public int getType()
getType in class AbstractImage
public void setQuality(float q)
throws PdfException
qualityFactor - The Quality Factor to set during the encoding of the image
(from 0.0 to 1.0).
PdfException - If the qualityFactor supplied is out of range.
public void writeToStream(java.io.OutputStream outStream)
throws java.io.IOException
AbstractImage
writeToStream in class AbstractImageoutStream - The OuputStream where to write the image
java.io.IOException - If an error occurs while accessing the stream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||