PDF Clown
0.0.8

it.stefanochizzolini.clown.documents.contents.xObjects
Class ImageXObject

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfStream>
      extended by it.stefanochizzolini.clown.documents.contents.xObjects.XObject
          extended by it.stefanochizzolini.clown.documents.contents.xObjects.ImageXObject

public class ImageXObject
extends XObject

Image external object [PDF:1.6:4.8.4].

Version:
0.0.6
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Constructor Summary
ImageXObject(Document context, PdfStream baseDataObject)
           
ImageXObject(PdfDirectObject baseObject)
          For internal use only.
 
Method Summary
 ImageXObject clone(Document context)
          Gets a clone of the object, registered inside the given document context.
 int getBitsPerComponent()
          Gets the number of bits per color component.
 String getColorSpace()
          Gets the color space in which samples are specified.
 double[] getMatrix()
          Gets the mapping from external-object space to user space.
 Dimension2D getSize()
          Gets the size of the image (in samples).
 void setSize(Dimension2D value)
          Sets the external object size.
 
Methods inherited from class it.stefanochizzolini.clown.documents.contents.xObjects.XObject
wrap
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageXObject

public ImageXObject(Document context,
                    PdfStream baseDataObject)

ImageXObject

public ImageXObject(PdfDirectObject baseObject)
For internal use only.

Method Detail

getBitsPerComponent

public int getBitsPerComponent()
Gets the number of bits per color component.


clone

public ImageXObject clone(Document context)
Description copied from class: PdfObjectWrapper
Gets a clone of the object, registered inside the given document context.

Specified by:
clone in class PdfObjectWrapper<PdfStream>
Parameters:
context - Which document the clone has to be registered in.

getColorSpace

public String getColorSpace()
Gets the color space in which samples are specified.


getMatrix

public double[] getMatrix()
Description copied from class: XObject
Gets the mapping from external-object space to user space.

Specified by:
getMatrix in class XObject
Since:
0.0.5

getSize

public Dimension2D getSize()
Gets the size of the image (in samples).

Specified by:
getSize in class XObject
Since:
0.0.5

setSize

public void setSize(Dimension2D value)
Description copied from class: XObject
Sets the external object size.

Specified by:
setSize in class XObject
Since:
0.0.5

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.