com.crionics.jpdf.graphic
Class ImageGeneric

java.lang.Object
  extended by com.crionics.jpdf.graphic.AbstractImage
      extended by com.crionics.jpdf.graphic.ImageGeneric

public class ImageGeneric
extends AbstractImage

This Class allows to load and Process a Generic Image before its insertion in a PDF Document.
Note: The Codecs used to access the images are the ones provided by the Java API (AWT).


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
 
Method Summary
 int getType()
          Return the type of the current Image Object (Images.TYPE_GENERIC)
 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
 

Method Detail

getType

public int getType()
Return the type of the current Image Object (Images.TYPE_GENERIC)

Specified by:
getType in class AbstractImage
Returns:
The Type of the Image.

writeToStream

public void writeToStream(java.io.OutputStream outStream)
                   throws java.io.IOException
Description copied from class: AbstractImage
Writes the content of the image in the specified OutputStream.

Specified by:
writeToStream in class AbstractImage
Parameters:
outStream - The OuputStream where to write the image
Throws:
java.io.IOException - If an error occurs while accessing the stream.


Copyright © 1999-2007 Crionics. All Rights Reserved.