Example usage for Java com.itextpdf.text Image fields, constructors, methods, implement or subclass
The text is from its open source code.
int | RIGHT this is a kind of image alignment. |
int | LEFT this is a kind of image alignment. |
int | MIDDLE this is a kind of image alignment. |
int | TEXTWRAP this is a kind of image alignment. |
int | UNDERLYING this is a kind of image alignment. |
int | ORIGINAL_NONE type of image |
int | ORIGINAL_TIFF type of image |
float | getAbsoluteX() Returns the absolute X position. |
float | getAbsoluteY() Returns the absolute Y position. |
float | getBottom() Returns the lower left y-coordinate. |
int | getDpiX() Gets the dots-per-inch in the X direction. |
int | getDpiY() Gets the dots-per-inch in the Y direction. |
float | getHeight() Returns the height of the rectangle. |
ICC_Profile | getICCProfile() Gets the images ICC profile. |
Image | getImageMask() Gets the explicit masking. |
Image | getInstance(final URL url) |
Image | getInstance(final String filename) Gets an instance of an Image. |
Image | getInstance(final byte imgb[]) |
Image | getInstance(final PdfTemplate template) gets an instance of an Image |
Image | getInstance(final PRIndirectReference ref) Reuses an existing image. |
Image | getInstance(final Image image) gets an instance of an Image |
Image | getInstance(final URL url, boolean recoverFromImageError) Gets an instance of an Image. |
Image | getInstance(final String filename, boolean recoverFromImageError) |
Image | getInstance(final byte imgb[], boolean recoverFromImageError) gets an instance of an Image |
Image | getInstance(final java.awt.Image image, final java.awt.Color color) Gets an instance of an Image from a java.awt.Image. |
Image | getInstance(final java.awt.Image image, final java.awt.Color color, boolean forceBW) Gets an instance of an Image from a java.awt.Image. |
Image | getInstance(final PdfWriter writer, final java.awt.Image awtImage, final float quality) Gets an instance of a Image from a java.awt.Image. |
Image | getInstance(final PdfContentByte cb, final java.awt.Image awtImage, final float quality) Gets an instance of a Image from a java.awt.Image. |
Image | getInstance(final int width, final int height, final byte[] data, final byte[] globals) Creates a JBIG2 Image. |
float | getLeft() Returns the lower left x-coordinate. |
int | getOriginalType() Getter for property originalType. |
float | getPlainHeight() Gets the plain height of the image. |
float | getPlainWidth() Gets the plain width of the image. |
byte[] | getRawData() Gets the raw data for the image. |
float | getRight() Returns the upper right x-coordinate. |
float | getScaledHeight() Gets the scaled height of the image. |
float | getScaledWidth() Gets the scaled width of the image. |
float | getWidth() Returns the width of the rectangle. |
boolean | hasAbsoluteX() Checks if the Images has to be added at an absolute X position. |
boolean | hasAbsoluteY() Checks if the Images has to be added at an absolute position. |
boolean | isImgTemplate() Returns true if the image is an ImgTemplate -object. |
void | makeMask() Make this Image a mask. |
Rectangle | rotate() Rotates the rectangle. |
void | scaleAbsolute(final float newWidth, final float newHeight) Scale the image to an absolute width and an absolute height. |
void | scaleAbsolute(final Rectangle rectangle) Scale the image to the dimensions of the rectangle |
void | scaleAbsoluteHeight(final float newHeight) Scale the image to an absolute height. |
void | scaleAbsoluteWidth(final float newWidth) Scale the image to an absolute width. |
void | scalePercent(final float percent) Scale the image to a certain percentage. |
void | scalePercent(final float percentX, final float percentY) Scale the width and height of an image to a certain percentage. |
void | scaleToFit(final float fitWidth, final float fitHeight) Scales the image so that it fits a certain width and height. |
void | scaleToFit(final Rectangle rectangle) Scales the images to the dimensions of the rectangle. |
void | setAbsolutePosition(final float absoluteX, final float absoluteY) Sets the absolute position of the Image . |
void | setAlignment(final int alignment) Sets the alignment for the image. |
void | setAlt(final String alt) Sets the alternative information for the image. |
void | setAnnotation(final Annotation annotation) Sets the annotation of this Image. |
void | setBackgroundColor(final BaseColor backgroundColor) Sets the backgroundcolor of the rectangle. |
void | setBorder(final int border) Enables/Disables the border on the specified sides. |
void | setBorderColor(final BaseColor borderColor) Sets the color of the border. |
void | setBorderWidth(final float borderWidth) Sets the borderwidth of the table. |
void | setCompressionLevel(final int compressionLevel) Sets the compression level to be used if the image is written as a compressed stream. |
void | setDpi(final int dpiX, final int dpiY) Sets the dots per inch value |
void | setImageMask(final Image mask) Sets the explicit masking. |
void | setIndentationLeft(final float f) Sets the left indentation. |
void | setInterpolation(final boolean interpolation) Sets the image interpolation. |
void | setPaddingTop(float paddingTop) |
void | setRotationDegrees(final float deg) Sets the rotation of the image in degrees. |
void | setSpacingAfter(final float spacing) Sets the spacing after this image. |
void | setSpacingBefore(final float spacing) Sets the spacing before this image. |
void | setTransparency(final int transparency[]) Sets the transparency values |
void | setWidthPercentage(final float widthPercentage) Setter for property widthPercentage. |