com.mindfusion.pdf
Class PdfImage

java.lang.Object
  extended by com.mindfusion.pdf.PdfObject
      extended by com.mindfusion.pdf.PdfImage
All Implemented Interfaces:
INotify<PdfObject>, IPdfSaver, java.lang.Comparable

public class PdfImage
extends PdfObject


Field Summary
 
Fields inherited from class com.mindfusion.pdf.PdfObject
currentRotation, currentTransform, id, offset, page, parent, pdfType, size
 
Constructor Summary
PdfImage(java.awt.Image img, PdfPage _page)
           
PdfImage(java.awt.Image img, PdfPage _page, boolean isMask)
           
PdfImage(java.awt.Image img, PdfPage _page, java.awt.Dimension dim)
           
 
Method Summary
protected  byte[] getContent()
           
 int getH()
           
 int getW()
           
 boolean isMask()
           
 boolean isMasked()
           
 boolean isMaskRequired()
           
 
Methods inherited from class com.mindfusion.pdf.PdfObject
compare, compareTo, getCollectionId, getCurrentRotation, getCurrentTransform, getDocument, getId, getName, getObjectFooter, getObjectHeader, getOffset, getPage, getParent, getPdfType, getSize, isParentless, isRoot, OnAdded, OnChanged, registerObject, Save, setCollectionId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfImage

public PdfImage(java.awt.Image img,
                PdfPage _page,
                java.awt.Dimension dim)
         throws java.lang.IllegalArgumentException,
                java.io.IOException
Throws:
java.lang.IllegalArgumentException
java.io.IOException

PdfImage

public PdfImage(java.awt.Image img,
                PdfPage _page)
         throws java.lang.IllegalArgumentException,
                java.io.IOException
Throws:
java.lang.IllegalArgumentException
java.io.IOException

PdfImage

public PdfImage(java.awt.Image img,
                PdfPage _page,
                boolean isMask)
         throws java.lang.IllegalArgumentException,
                java.io.IOException
Throws:
java.lang.IllegalArgumentException
java.io.IOException
Method Detail

isMaskRequired

public boolean isMaskRequired()

isMask

public boolean isMask()

isMasked

public boolean isMasked()

getW

public int getW()

getH

public int getH()

getContent

protected byte[] getContent()
                     throws java.io.IOException
Overrides:
getContent in class PdfObject
Throws:
java.io.IOException