public class ImageFormGenerator extends FormGenerator
Constructor and Description |
---|
ImageFormGenerator(String formName,
String title,
Dimension2D dimensions,
Dimension dimensionsPx,
ImageEncoder encoder,
ColorSpace colorSpace,
boolean invertImage)
Main constructor.
|
ImageFormGenerator(String formName,
String title,
Dimension2D dimensions,
Dimension dimensionsPx,
ImageEncoder encoder,
ColorSpace colorSpace,
int bitsPerComponent,
boolean invertImage)
Main constructor.
|
ImageFormGenerator(String formName,
String title,
Dimension2D dimensions,
RenderedImage image,
boolean invertImage)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
generateAdditionalDataStream(PSGenerator gen)
Generates some PostScript code right after the form definition (used primarily for
bitmap data).
|
protected void |
generatePaintProc(PSGenerator gen)
Generates the PostScript code for the PaintProc of the form.
|
protected String |
getDataName()
Returns the name of the data segment associated with this image form.
|
generate, getBBox, getDimensions, getFormName, getMatrix, getTitle
public ImageFormGenerator(String formName, String title, Dimension2D dimensions, RenderedImage image, boolean invertImage)
formName
- the form's nametitle
- the form's title or nulldimensions
- the form's dimensions in units (usually points)image
- the imageinvertImage
- true if the image shall be invertedpublic ImageFormGenerator(String formName, String title, Dimension2D dimensions, Dimension dimensionsPx, ImageEncoder encoder, ColorSpace colorSpace, int bitsPerComponent, boolean invertImage)
formName
- the form's nametitle
- the form's title or nulldimensions
- the form's dimensions in units (usually points)dimensionsPx
- the form's dimensions in pixelsencoder
- the image encodercolorSpace
- the target color spacebitsPerComponent
- the bits per componentinvertImage
- true if the image shall be invertedpublic ImageFormGenerator(String formName, String title, Dimension2D dimensions, Dimension dimensionsPx, ImageEncoder encoder, ColorSpace colorSpace, boolean invertImage)
formName
- the form's nametitle
- the form's title or nulldimensions
- the form's dimensions in units (usually points)dimensionsPx
- the form's dimensions in pixelsencoder
- the image encodercolorSpace
- the target color spaceinvertImage
- true if the image shall be invertedprotected String getDataName()
protected void generatePaintProc(PSGenerator gen) throws IOException
generatePaintProc
in class FormGenerator
gen
- the PostScript generatorIOException
- if an I/O error occursprotected void generateAdditionalDataStream(PSGenerator gen) throws IOException
generateAdditionalDataStream
in class FormGenerator
gen
- the PostScript generatorIOException
- if an I/O error occursCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.