|
xmlgraphics-commons 1.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.xmlgraphics.ps.PSImageUtils
Utility code for rendering images in PostScript.
| Constructor Summary | |
PSImageUtils()
|
|
| Method Summary | |
static int[] |
getRGB(java.awt.image.RenderedImage img,
int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize)
|
static void |
renderBitmapImage(java.awt.image.RenderedImage img,
float x,
float y,
float w,
float h,
PSGenerator gen)
Renders a bitmap image to PostScript. |
static void |
renderEPS(byte[] rawEPS,
java.lang.String name,
float x,
float y,
float w,
float h,
float bboxx,
float bboxy,
float bboxw,
float bboxh,
PSGenerator gen)
Places an EPS file in the PostScript stream. |
static void |
writeImage(byte[] img,
java.awt.Dimension imgDim,
java.lang.String imgName,
java.awt.geom.Rectangle2D targetRect,
boolean isJPEG,
java.awt.color.ColorSpace colorSpace,
PSGenerator gen)
Writes a bitmap image to the PostScript stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PSImageUtils()
| Method Detail |
public static void writeImage(byte[] img,
java.awt.Dimension imgDim,
java.lang.String imgName,
java.awt.geom.Rectangle2D targetRect,
boolean isJPEG,
java.awt.color.ColorSpace colorSpace,
PSGenerator gen)
throws java.io.IOException
img - the bitmap image as a byte arrayimgDim - the dimensions of the imageimgName - the name of the imagetargetRect - the target rectangle to place the image inisJPEG - true if "img" contains a DCT-encoded images, false if "img" contains the
decoded bitmapcolorSpace - the color space of the imagegen - the PostScript generator
java.io.IOException - In case of an I/O exception
public static void renderBitmapImage(java.awt.image.RenderedImage img,
float x,
float y,
float w,
float h,
PSGenerator gen)
throws java.io.IOException
img - image to renderx - x positiony - y positionw - widthh - heightgen - PS generator
java.io.IOException - In case of an I/O problem while rendering the image
public static int[] getRGB(java.awt.image.RenderedImage img,
int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize)
public static void renderEPS(byte[] rawEPS,
java.lang.String name,
float x,
float y,
float w,
float h,
float bboxx,
float bboxy,
float bboxw,
float bboxh,
PSGenerator gen)
throws java.io.IOException
rawEPS - byte array containing the raw EPS dataname - name for the EPS documentx - x-coordinate of viewport in millipointsy - y-coordinate of viewport in millipointsw - width of viewport in millipointsh - height of viewport in millipointsbboxx - x-coordinate of EPS bounding box in pointsbboxy - y-coordinate of EPS bounding box in pointsbboxw - width of EPS bounding box in pointsbboxh - height of EPS bounding box in pointsgen - the PS generator
java.io.IOException - in case an I/O error happens during output
|
xmlgraphics-commons 1.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||