Main Page | Namespace List | Class Hierarchy | Class List | Class Members | Related Pages

gnu::jpdf::PDFImage Class Reference

Inheritance diagram for gnu::jpdf::PDFImage:

Inheritance graph
[legend]
Collaboration diagram for gnu::jpdf::PDFImage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PDFImage ()
 PDFImage (Image img)
 PDFImage (Image img, int x, int y, int w, int h, ImageObserver obs)
int getWidth ()
void setWidth (int v)
int getHeight ()
void setHeight (int v)
void setName (String n)
String getName ()
void setImage (Image img, int x, int y, int w, int h, ImageObserver obs)
void writeStream (OutputStream os) throws IOException
void write (OutputStream os) throws IOException
boolean imageUpdate (Image img, int infoflags, int x, int y, int w, int h)

Static Public Member Functions

String handlePixel (int x, int y, int p)

Detailed Description

This implements the Image XObject. Calling one of the drawImage methods of PDFGraphics will put all the necessary code into the pdf file, and the image will be encoded in ascii base 85, then deflated in zip format.

Author:
Eric Z. Beard (original version by Peter Mount)

Matthew Hreljac, mhreljac@hotmail.com

Author
ezb
Version:
Revision
1.4
,
Date
2002/04/05 13:01:40


Constructor & Destructor Documentation

gnu::jpdf::PDFImage::PDFImage  )  [inline]
 

Creates a new PDFImage instance.

gnu::jpdf::PDFImage::PDFImage Image  img  )  [inline]
 

Creates a new PDFImage instance.

Parameters:
img an Image value

gnu::jpdf::PDFImage::PDFImage Image  img,
int  x,
int  y,
int  w,
int  h,
ImageObserver  obs
[inline]
 

Creates a new PDFImage instance.

Parameters:
img an Image value
x an int value
y an int value
w an int value
h an int value
obs an ImageObserver value


Member Function Documentation

int gnu::jpdf::PDFImage::getHeight  )  [inline]
 

Get the value of height.

Returns:
value of height.

String gnu::jpdf::PDFImage::getName  )  [inline]
 

Get the name

Returns:
a String value

int gnu::jpdf::PDFImage::getWidth  )  [inline]
 

Get the value of width.

Returns:
value of width.

String gnu::jpdf::PDFImage::handlePixel int  x,
int  y,
int  p
[inline, static]
 

Converts a pixel to a hex string

Parameters:
x an int value
y an int value
p an int value
Returns:
a String value

boolean gnu::jpdf::PDFImage::imageUpdate Image  img,
int  infoflags,
int  x,
int  y,
int  w,
int  h
[inline]
 

Describe imageUpdate method here.

Parameters:
img an Image value
infoflags an int value
x an int value
y an int value
w an int value
h an int value
Returns:
a boolean value

void gnu::jpdf::PDFImage::setHeight int  v  )  [inline]
 

Set the value of height.

Parameters:
v Value to assign to height.

void gnu::jpdf::PDFImage::setImage Image  img,
int  x,
int  y,
int  w,
int  h,
ImageObserver  obs
[inline]
 

Set the image

Parameters:
img an Image value
x an int value
y an int value
w an int value
h an int value
obs an ImageObserver value

void gnu::jpdf::PDFImage::setName String  n  )  [inline]
 

Set the name

Parameters:
n a String value

void gnu::jpdf::PDFImage::setWidth int  v  )  [inline]
 

Set the value of width.

Parameters:
v Value to assign to width.

void gnu::jpdf::PDFImage::write OutputStream  os  )  throws IOException [inline, virtual]
 

Compression needs to be improved here

Parameters:
os OutputStream to send the object to
Exceptions:
IOException on error

Reimplemented from gnu::jpdf::PDFStream.

void gnu::jpdf::PDFImage::writeStream OutputStream  os  )  throws IOException [inline]
 

Writes the image to the stream

Parameters:
os an OutputStream value
Exceptions:
IOException if an error occurs

Reimplemented from gnu::jpdf::PDFStream.


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 16:58:07 2005 by  doxygen 1.3.9.1