| java.lang.Object gnu.jpdf.PDFObject gnu.jpdf.PDFStream gnu.jpdf.PDFImage
PDFImage | public class PDFImage extends PDFStream implements ImageObserver,Serializable(Code) | | 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) author: Matthew Hreljac, mhreljac@hotmail.com author: $Author: ezb $ version: $Revision: 1.3 $, $Date: 2002/03/04 20:33:18 $ |
Constructor Summary | |
public | PDFImage() Creates a new PDFImage instance. | public | PDFImage(Image img) Creates a new PDFImage instance. | public | PDFImage(Image img, int x, int y, int w, int h, ImageObserver obs) Creates a new PDFImage instance. |
Method Summary | |
public int | getHeight() Get the value of height. | public String | getName() | public int | getWidth() Get the value of width. | public static String | handlePixel(int x, int y, int p) | public boolean | imageUpdate(Image img, int infoflags, int x, int y, int w, int h) Describe imageUpdate method here. | public void | setHeight(int v) Set the value of height. | public void | setImage(Image img, int x, int y, int w, int h, ImageObserver obs) | public void | setName(String n) | public void | setWidth(int v) Set the value of width. | public void | write(OutputStream os) | public void | writeStream(OutputStream os) |
PDFImage | public PDFImage()(Code) | | Creates a new PDFImage instance.
|
PDFImage | public PDFImage(Image img)(Code) | | Creates a new PDFImage instance.
Parameters: img - an Image value |
PDFImage | public PDFImage(Image img, int x, int y, int w, int h, ImageObserver obs)(Code) | | Creates a new PDFImage instance.
Parameters: img - an Image value Parameters: x - an int value Parameters: y - an int value Parameters: w - an int value Parameters: h - an int value Parameters: obs - an ImageObserver value |
getHeight | public int getHeight()(Code) | | Get the value of height.
value of height. |
getName | public String getName()(Code) | | Get the name
a String value |
getWidth | public int getWidth()(Code) | | Get the value of width.
value of width. |
handlePixel | public static String handlePixel(int x, int y, int p)(Code) | | Converts a pixel to a hex string
Parameters: x - an int value Parameters: y - an int value Parameters: p - an int value a String value |
imageUpdate | public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)(Code) | | Describe imageUpdate method here.
Parameters: img - an Image value Parameters: infoflags - an int value Parameters: x - an int value Parameters: y - an int value Parameters: w - an int value Parameters: h - an int value a boolean value |
setHeight | public void setHeight(int v)(Code) | | Set the value of height.
Parameters: v - Value to assign to height. |
setImage | public void setImage(Image img, int x, int y, int w, int h, ImageObserver obs)(Code) | | Set the image
Parameters: img - an Image value Parameters: x - an int value Parameters: y - an int value Parameters: w - an int value Parameters: h - an int value Parameters: obs - an ImageObserver value |
setName | public void setName(String n)(Code) | | Set the name
Parameters: n - a String value |
setWidth | public void setWidth(int v)(Code) | | Set the value of width.
Parameters: v - Value to assign to width. |
|
|