Java com.lowagie.text Image fields, constructors, methods, implement or subclass

Example usage for Java com.lowagie.text Image fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.lowagie.text Image.

The text is from its open source code.

Subclass

com.lowagie.text.Image has subclasses.
Click this link to see all its subclasses.

Field

intDEFAULT
this is a kind of image alignment.
intRIGHT
this is a kind of image alignment.
intLEFT
this is a kind of image alignment.
intMIDDLE
this is a kind of image alignment.
intTEXTWRAP
this is a kind of image alignment.
intUNDERLYING
this is a kind of image alignment.
intORIGINAL_JPEG
type of image
intORIGINAL_PNG
type of image
intORIGINAL_GIF
type of image
intORIGINAL_BMP
type of image
intORIGINAL_TIFF
type of image
intORIGINAL_JPEG2000
type of image
floatabsoluteX
This is the absolute X-position of the image.
floatabsoluteY
This is the absolute Y-position of the image.
floatplainWidth
This is the width of the image without rotation.
floatplainHeight
This is the width of the image without rotation.
floatscaledWidth
This is the scaled width of the image taking rotation into account.
floatscaledHeight
This is the original height of the image taking rotation into account.

Method

floatgetAbsoluteX()
Returns the absolute X position.
floatgetAbsoluteY()
Returns the absolute Y position.
intgetDpiX()
Gets the dots-per-inch in the X direction.
intgetDpiY()
Gets the dots-per-inch in the Y direction.
ImagegetInstance(URL url)
Gets an instance of an Image.
ImagegetInstance(String filename)
Gets an instance of an Image.
ImagegetInstance(byte imgb[])
gets an instance of an Image
ImagegetInstance(PdfTemplate template)
gets an instance of an Image
ImagegetInstance(PRIndirectReference ref)
Reuses an existing image.
ImagegetInstance(Image image)
gets an instance of an Image
ImagegetInstance(java.awt.Image image, java.awt.Color color)
Gets an instance of an Image from a java.awt.Image.
ImagegetInstance(java.awt.Image image, java.awt.Color color, boolean forceBW)
Gets an instance of an Image from a java.awt.Image.
ImagegetInstance(PdfWriter writer, java.awt.Image awtImage, float quality)
Gets an instance of a Image from a java.awt.Image.
ImagegetInstance(PdfContentByte cb, java.awt.Image awtImage, float quality)
Gets an instance of a Image from a java.awt.Image.
ImagegetInstance(int width, int height, int components, int bpc, byte data[])
Gets an instance of an Image in raw mode.
intgetOriginalType()
Getter for property originalType.
floatgetPlainHeight()
Gets the plain height of the image.
floatgetPlainWidth()
Gets the plain width of the image.
floatgetScaledHeight()
Gets the scaled height of the image.
floatgetScaledWidth()
Gets the scaled width of the image.
URLgetUrl()
Gets the String -representation of the reference to the image.
voidmakeMask()
Make this Image a mask.
voidscaleAbsolute(float newWidth, float newHeight)
Scale the image to an absolute width and an absolute height.
voidscaleAbsoluteHeight(float newHeight)
Scale the image to an absolute height.
voidscaleAbsoluteWidth(float newWidth)
Scale the image to an absolute width.
voidscalePercent(float percent)
Scale the image to a certain percentage.
voidscalePercent(float percentX, float percentY)
Scale the width and height of an image to a certain percentage.
voidscaleToFit(float fitWidth, float fitHeight)
Scales the image so that it fits a certain width and height.
voidsetAbsolutePosition(float absoluteX, float absoluteY)
Sets the absolute position of the Image.
voidsetAlignment(int alignment)
Sets the alignment for the image.
voidsetAlt(String alt)
Sets the alternative information for the image.
voidsetAnnotation(Annotation annotation)
Sets the annotation of this Image.
voidsetCompressionLevel(int compressionLevel)
Sets the compression level to be used if the image is written as a compressed stream.
voidsetDirectReference(PdfIndirectReference directReference)
Setter for property directReference.
voidsetDpi(int dpiX, int dpiY)
Sets the dots per inch value
voidsetImageMask(Image mask)
Sets the explicit masking.
voidsetIndentationLeft(float f)
Sets the left indentation.
voidsetInitialRotation(float initialRotation)
Some image formats, like TIFF may present the images rotated that have to be compensated.
voidsetInverted(boolean invert)
Sets inverted true or false
voidsetRotation(float r)
Sets the rotation of the image in radians.
voidsetRotationDegrees(float deg)
Sets the rotation of the image in degrees.
voidsetSpacingAfter(float spacing)
Sets the spacing after this image.
voidsetSpacingBefore(float spacing)
Sets the spacing before this image.
voidsetTransparency(int transparency[])
Sets the transparency values
voidsetWidthPercentage(float widthPercentage)
Setter for property widthPercentage.