PDF Clown
0.0.8

it.stefanochizzolini.clown.documents.contents.entities
Class Image

java.lang.Object
  extended by it.stefanochizzolini.clown.documents.contents.entities.Entity
      extended by it.stefanochizzolini.clown.documents.contents.entities.Image
All Implemented Interfaces:
IContentEntity
Direct Known Subclasses:
JpegImage

public abstract class Image
extends Entity

Abstract image object [PDF:1.6:4.8].

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

Constructor Summary
protected Image(IInputStream stream)
           
 
Method Summary
static Image get(File file)
           
static Image get(IInputStream stream)
           
static Image get(String path)
           
 int getBitsPerComponent()
          Gets the number of bits per color component [PDF:1.6:4.8.2].
 int getHeight()
          Gets the height of the image in samples [PDF:1.6:4.8.2].
protected  IInputStream getStream()
          Gets the underlying stream.
 int getWidth()
          Gets the width of the image in samples [PDF:1.6:4.8.2].
protected  void setBitsPerComponent(int value)
          Sets the number of bits per color component [PDF:1.6:4.8.2].
protected  void setHeight(int value)
          Sets the height of the image in samples [PDF:1.6:4.8.2].
protected  void setWidth(int value)
          Sets the width of the image in samples [PDF:1.6:4.8.2].
 
Methods inherited from class it.stefanochizzolini.clown.documents.contents.entities.Entity
toInlineObject, toXObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Image

protected Image(IInputStream stream)
Method Detail

get

public static Image get(String path)

get

public static Image get(File file)

get

public static Image get(IInputStream stream)

getBitsPerComponent

public int getBitsPerComponent()
Gets the number of bits per color component [PDF:1.6:4.8.2].


getHeight

public int getHeight()
Gets the height of the image in samples [PDF:1.6:4.8.2].


getWidth

public int getWidth()
Gets the width of the image in samples [PDF:1.6:4.8.2].


getStream

protected IInputStream getStream()
Gets the underlying stream.


setBitsPerComponent

protected void setBitsPerComponent(int value)
Sets the number of bits per color component [PDF:1.6:4.8.2].


setHeight

protected void setHeight(int value)
Sets the height of the image in samples [PDF:1.6:4.8.2].


setWidth

protected void setWidth(int value)
Sets the width of the image in samples [PDF:1.6:4.8.2].


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.