Package org.jpedal.manipulator
Class AddImage
java.lang.Object
org.jpedal.manipulator.AddImage
- All Implemented Interfaces:
org.jpedal.manipulator.Manipulation
Adds an image to a document.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents a color space that you can write with. -
Constructor Summary
ConstructorsConstructorDescriptionAddImage(PageRanges pages, byte[] image, int width, int height, AddImage.ColorSpace colorSpace, float[] rect) Adds an image onto the specified pages.AddImage(PageRanges pages, BufferedImage image, float[] rect) Adds an image onto the specified pages. -
Method Summary
-
Constructor Details
-
AddImage
Adds an image onto the specified pages.- Parameters:
pages- the pages to add the image toimage- the image to addrect- a rectangle specifying the origin and dimensions of the image
-
AddImage
public AddImage(PageRanges pages, byte[] image, int width, int height, AddImage.ColorSpace colorSpace, float[] rect) Adds an image onto the specified pages.- Parameters:
pages- the pages to add the image toimage- the image to addwidth- the width of the image to addheight- the height of the image to addcolorSpace- the color space that the byte array of pixels belongs torect- a rectangle specifying the origin and dimensions of the image
-