Field Summary |
|
final public static int | AX This represents a coordinate in the transformation matrix. |
final public static int | AY This represents a coordinate in the transformation matrix. |
final public static int | BX This represents a coordinate in the transformation matrix. |
final public static int | BY This represents a coordinate in the transformation matrix. |
final public static int | CX This represents a coordinate in the transformation matrix. |
final public static int | CY This represents a coordinate in the transformation matrix. |
final public static int | DEFAULT this is a kind of image alignment. |
final public static int | DX This represents a coordinate in the transformation matrix. |
final public static int | DY This represents a coordinate in the transformation matrix. |
final public static int | LEFT this is a kind of image alignment. |
final public static int | MIDDLE this is a kind of image alignment. |
final public static int | ORIGINAL_BMP |
final public static int | ORIGINAL_GIF |
final public static int | ORIGINAL_JPEG |
final public static int | ORIGINAL_NONE |
final public static int | ORIGINAL_PNG |
final public static int | ORIGINAL_PS |
final public static int | ORIGINAL_TIFF |
final public static int | ORIGINAL_WMF |
final public static int | RIGHT this is a kind of image alignment. |
final public static int | TEXTWRAP this is a kind of image alignment. |
final public static int | UNDERLYING this is a kind of image alignment. |
protected float | absoluteX This is the absolute X-position of the image. |
protected float | absoluteY This is the absolute Y-position of the image. |
protected int | alignment The alignment of the Image. |
protected String | alt Text that can be shown instead of the image. |
protected Annotation | annotation if the annotation is not null the image will be clickable. |
protected int | bpc The bits per component of the raw image. |
protected int | colorspace this is the colorspace of a jpeg-image. |
protected boolean | deflated Holds value of property deflated. |
protected int | dpiX Holds value of property dpiX. |
protected int | dpiY Holds value of property dpiY. |
protected Image | imageMask The image that serves as a mask for this image. |
protected float | indentationLeft the indentation to the left. |
protected float | indentationRight the indentation to the right. |
protected boolean | interpolation Holds value of property interpolation. |
protected boolean | invert |
protected PdfOCG | layer Optional Content layer to which we want this Image to belong. |
protected boolean | mask |
protected Long | mySerialId an iText attributed unique id for this image. |
protected byte[] | originalData Holds value of property originalData. |
protected int | originalType Holds value of property originalType. |
protected float | plainHeight This is the width of the image without rotation. |
protected float | plainWidth This is the width of the image without rotation. |
protected ICC_Profile | profile |
protected byte | rawData The raw data of the image. |
protected float | rotationRadians This is the rotation of the image in radians. |
protected float | scaledHeight This is the original height of the image taking rotation into account. |
protected float | scaledWidth This is the scaled width of the image taking rotation into account. |
static long | serialId a static that is used for attributing a unique id to each image. |
protected float | spacingAfter The spacing after the image. |
protected float | spacingBefore The spacing before the image. |
protected PdfTemplate | template The template to be treated as an image. |
protected int | transparency |
protected int | type The imagetype. |
protected URL | url The URL of the image. |
Method Summary |
|
public float | absoluteX() Returns the absolute X position. |
public float | absoluteY() Returns the absolute Y position. |
public int | alignment() Gets the alignment for the image. |
public String | alt() Gets the alternative text for the image. |
public Annotation | annotation() Gets the annotation. |
public int | bpc() Gets the bpc for the image. |
public int | colorspace() Gets the colorspace for the image. |
public float | getAbsoluteX() Returns the absolute X position. |
public float | getAbsoluteY() Returns the absolute Y position. |
public PdfDictionary | getAdditional() Getter for the dictionary with additional information. |
public int | getAlignment() Gets the alignment for the image. |
public String | getAlt() Gets the alternative text for the image. |
public Annotation | getAnnotation() Gets the annotation. |
public int | getBpc() Gets the bpc for the image. |
public int | getColorspace() Gets the colorspace for the image. |
public PdfIndirectReference | getDirectReference() Getter for property directReference. |
public int | getDpiX() Gets the dots-per-inch in the X direction. |
public int | getDpiY() Gets the dots-per-inch in the Y direction. |
public ICC_Profile | getICCProfile() Gets the images ICC profile. |
public Image | getImageMask() Gets the explicit masking. |
public float | getImageRotation() Gets the current image rotation in radians. |
public float | getIndentationLeft() Gets the left indentation. |
public float | getIndentationRight() Gets the right indentation. |
public float | getInitialRotation() Getter for property initialRotation. |
public static Image | getInstance(URL url) Gets an instance of an Image. |
public static Image | getInstance(String filename) Gets an instance of an Image. |
public static Image | getInstance(byte imgb) |
public static Image | getInstance(int width, int height, int components, int bpc, byte data) Gets an instance of an Image in raw mode. |
public static Image | getInstance(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data) Creates an Image with CCITT G3 or G4 compression. |
public static Image | getInstance(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data, int transparency) Creates an Image with CCITT G3 or G4 compression. |
public static Image | getInstance(int width, int height, int components, int bpc, byte data, int transparency) Gets an instance of an Image in raw mode. |
public static Image | getInstance(PdfTemplate template) |
public static Image | getInstance(java.awt.Image image, java.awt.Color color, boolean forceBW) Gets an instance of an Image from a java.awt.Image. |
public static Image | getInstance(java.awt.Image image, java.awt.Color color) Gets an instance of an Image from a java.awt.Image. |
public static Image | getInstance(PdfWriter writer, java.awt.Image awtImage, float quality) Gets an instance of a Image from a java.awt.Image. |
public static Image | getInstance(PdfContentByte cb, java.awt.Image awtImage, float quality) Gets an instance of a Image from a java.awt.Image. |
public static Image | getInstance(PRIndirectReference ref) Reuses an existing image. |
public static Image | getInstance(Image image) |
public static Image | getInstance(java.util.Properties attributes) Returns an Image that has been constructed taking in
account the value of some attributes . |
public PdfOCG | getLayer() Gets the layer this image belongs to. |
public Long | getMySerialId() |
public byte[] | getOriginalData() Getter for property originalData. |
public int | getOriginalType() Getter for property originalType. |
public float | getPlainHeight() Gets the plain height of the image. |
public float | getPlainWidth() Gets the plain width of the image. |
public byte[] | getRawData() Gets the raw data for the image. |
public float | getScaledHeight() Gets the scaled height of the image. |
public float | getScaledWidth() Gets the scaled width of the image. |
protected static synchronized Long | getSerialId() Creates a new serial id. |
public float | getSpacingAfter() Gets the spacing before this image. |
public float | getSpacingBefore() Gets the spacing before this image. |
public PdfTemplate | getTemplateData() Gets the template to be used as an image. |
public int[] | getTransparency() Returns the transparency. |
public URL | getUrl() Gets the String -representation of the reference to the
image. |
public float | getWidthPercentage() Getter for property widthPercentage. |
public float | getXYRatio() Gets the X/Y pixel dimensionless aspect ratio. |
public boolean | hasAbsolutePosition() Checks if the Images has to be added at an absolute
position. |
public boolean | hasAbsoluteX() Checks if the Images has to be added at an absolute X
position. |
public boolean | hasAbsoluteY() Checks if the Images has to be added at an absolute
position. |
public boolean | hasICCProfile() Checks is the image has an ICC profile. |
public float | indentationLeft() Gets the left indentation. |
public float | indentationRight() Gets the right indentation. |
public boolean | isDeflated() Getter for property deflated. |
public boolean | isImgRaw() Returns true if the image is a ImgRaw
-object. |
public boolean | isImgTemplate() Returns true if the image is an ImgTemplate
-object. |
public boolean | isInterpolation() Getter for property interpolation. |
public boolean | isInvertMask() Returns true if the bits are to be inverted in the mask. |
public boolean | isInverted() |
public boolean | isJpeg() Returns true if the image is a Jpeg
-object. |
public boolean | isMask() Returns true if this Image is a mask. |
public boolean | isMaskCandidate() Returns true if this Image has the
requisites to be a mask. |
public boolean | isSmask() Getter for property smask. |
public void | makeMask() Make this Image a mask. |
public float[] | matrix() Returns the transformation matrix of the image. |
public float | plainHeight() Gets the plain height of the image. |
public float | plainWidth() Gets the plain width of the image. |
public byte[] | rawData() Gets the raw data for the image. |
public void | scaleAbsolute(float newWidth, float newHeight) Scale the image to an absolute width and an absolute height. |
public void | scaleAbsoluteHeight(float newHeight) Scale the image to an absolute height. |
public void | scaleAbsoluteWidth(float newWidth) Scale the image to an absolute width. |
public void | scalePercent(float percent) Scale the image to a certain percentage. |
public void | scalePercent(float percentX, float percentY) Scale the width and height of an image to a certain percentage. |
public void | scaleToFit(float fitWidth, float fitHeight) Scales the image so that it fits a certain width and height. |
public float | scaledHeight() Gets the scaled height of the image. |
public float | scaledWidth() Gets the scaled height of the image. |
public void | setAbsolutePosition(float absoluteX, float absoluteY) Sets the absolute position of the Image . |
public void | setAdditional(PdfDictionary additional) Sets the /Colorspace key. |
public void | setAlignment(int alignment) Sets the alignment for the image. |
public void | setAlt(String alt) Sets the alternative information for the image. |
public void | setAnnotation(Annotation annotation) Sets the annotation of this Image. |
public void | setDeflated(boolean deflated) Setter for property deflated. |
public void | setDirectReference(PdfIndirectReference directReference) Setter for property directReference. |
public void | setDpi(int dpiX, int dpiY) |
public void | setImageMask(Image mask) Sets the explicit masking. |
public void | setIndentationLeft(float f) Sets the left indentation. |
public void | setIndentationRight(float f) Sets the right indentation. |
public void | setInitialRotation(float initialRotation) Some image formats, like TIFF may present the images rotated that have
to be compensated. |
public void | setInterpolation(boolean interpolation) Sets the image interpolation. |
public void | setInvertMask(boolean invert) Inverts the meaning of the bits of a mask. |
public void | setInverted(boolean invert) |
public void | setLayer(PdfOCG layer) Sets the layer this image belongs to. |
public void | setOriginalData(byte[] originalData) Setter for property originalData. |
public void | setOriginalType(int originalType) Setter for property originalType. |
public void | setRotation(float r) Sets the rotation of the image in radians. |
public void | setRotationDegrees(float deg) Sets the rotation of the image in degrees. |
public void | setSmask(boolean smask) Setter for property smask. |
public void | setSpacingAfter(float spacing) Sets the spacing after this image. |
public void | setSpacingBefore(float spacing) Sets the spacing before this image. |
public void | setTemplateData(PdfTemplate template) |
public void | setTransparency(int transparency) |
public void | setUrl(URL url) |
public void | setWidthPercentage(float widthPercentage) Setter for property widthPercentage. |
public void | setXYRatio(float XYRatio) Sets the X/Y pixel dimensionless aspect ratio. |
public void | simplifyColorspace() Replaces CalRGB and CalGray colorspaces with DeviceRGB and DeviceGray. |
public float | spacingAfter() Gets the spacing before this image. |
public float | spacingBefore() Gets the spacing before this image. |
public void | tagICC(ICC_Profile profile) Tags this image with an ICC profile. |
public PdfTemplate | templateData() Gets the template to be used as an image. |
public int | type() Returns the type. |
public URL | url() Gets the String -representation of the reference to the
image. |