Java Doc for Image.java in  » PDF » pdf-itext » com » lowagie » text » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » pdf itext » com.lowagie.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.Rectangle
      com.lowagie.text.Image

All known Subclasses:   com.lowagie.text.ImgWMF,  com.lowagie.text.Jpeg,  com.lowagie.text.ImgTemplate,  com.lowagie.text.ImgCCITT,  com.lowagie.text.ImgRaw,
Image
abstract public class Image extends Rectangle (Code)
An Image is the representation of a graphic element (JPEG, PNG or GIF) that has to be inserted into the document
See Also:   Element
See Also:   Rectangle


Field Summary
final public static  intAX
     This represents a coordinate in the transformation matrix.
final public static  intAY
     This represents a coordinate in the transformation matrix.
final public static  intBX
     This represents a coordinate in the transformation matrix.
final public static  intBY
     This represents a coordinate in the transformation matrix.
final public static  intCX
     This represents a coordinate in the transformation matrix.
final public static  intCY
     This represents a coordinate in the transformation matrix.
final public static  intDEFAULT
     this is a kind of image alignment.
final public static  intDX
     This represents a coordinate in the transformation matrix.
final public static  intDY
     This represents a coordinate in the transformation matrix.
final public static  intLEFT
     this is a kind of image alignment.
final public static  intMIDDLE
     this is a kind of image alignment.
final public static  intORIGINAL_BMP
    
final public static  intORIGINAL_GIF
    
final public static  intORIGINAL_JPEG
    
final public static  intORIGINAL_NONE
    
final public static  intORIGINAL_PNG
    
final public static  intORIGINAL_PS
    
final public static  intORIGINAL_TIFF
    
final public static  intORIGINAL_WMF
    
final public static  intRIGHT
     this is a kind of image alignment.
final public static  intTEXTWRAP
     this is a kind of image alignment.
final public static  intUNDERLYING
     this is a kind of image alignment.
protected  floatabsoluteX
     This is the absolute X-position of the image.
protected  floatabsoluteY
     This is the absolute Y-position of the image.
protected  intalignment
     The alignment of the Image.
protected  Stringalt
     Text that can be shown instead of the image.
protected  Annotationannotation
     if the annotation is not null the image will be clickable.
protected  intbpc
     The bits per component of the raw image.
protected  intcolorspace
     this is the colorspace of a jpeg-image.
protected  booleandeflated
     Holds value of property deflated.
protected  intdpiX
     Holds value of property dpiX.
protected  intdpiY
     Holds value of property dpiY.
protected  ImageimageMask
     The image that serves as a mask for this image.
protected  floatindentationLeft
     the indentation to the left.
protected  floatindentationRight
     the indentation to the right.
protected  booleaninterpolation
     Holds value of property interpolation.
protected  booleaninvert
    
protected  PdfOCGlayer
     Optional Content layer to which we want this Image to belong.
protected  booleanmask
    
protected  LongmySerialId
     an iText attributed unique id for this image.
protected  byte[]originalData
     Holds value of property originalData.
protected  intoriginalType
     Holds value of property originalType.
protected  floatplainHeight
     This is the width of the image without rotation.
protected  floatplainWidth
     This is the width of the image without rotation.
protected  ICC_Profileprofile
    
protected  byterawData
     The raw data of the image.
protected  floatrotationRadians
     This is the rotation of the image in radians.
protected  floatscaledHeight
     This is the original height of the image taking rotation into account.
protected  floatscaledWidth
     This is the scaled width of the image taking rotation into account.
static  longserialId
     a static that is used for attributing a unique id to each image.
protected  floatspacingAfter
     The spacing after the image.
protected  floatspacingBefore
     The spacing before the image.
protected  PdfTemplatetemplate
     The template to be treated as an image.
protected  inttransparency
    
protected  inttype
     The imagetype.
protected  URLurl
     The URL of the image.

Constructor Summary
public  Image(URL url)
     Constructs an Image -object, using an url .
protected  Image(Image image)
     Constructs an Image -object, using an url .

Method Summary
public  floatabsoluteX()
     Returns the absolute X position.
public  floatabsoluteY()
     Returns the absolute Y position.
public  intalignment()
     Gets the alignment for the image.
public  Stringalt()
     Gets the alternative text for the image.
public  Annotationannotation()
     Gets the annotation.
public  intbpc()
     Gets the bpc for the image.
public  intcolorspace()
     Gets the colorspace for the image.
public  floatgetAbsoluteX()
     Returns the absolute X position.
public  floatgetAbsoluteY()
     Returns the absolute Y position.
public  PdfDictionarygetAdditional()
     Getter for the dictionary with additional information.
public  intgetAlignment()
     Gets the alignment for the image.
public  StringgetAlt()
     Gets the alternative text for the image.
public  AnnotationgetAnnotation()
     Gets the annotation.
public  intgetBpc()
     Gets the bpc for the image.
public  intgetColorspace()
     Gets the colorspace for the image.
public  PdfIndirectReferencegetDirectReference()
     Getter for property directReference.
public  intgetDpiX()
     Gets the dots-per-inch in the X direction.
public  intgetDpiY()
     Gets the dots-per-inch in the Y direction.
public  ICC_ProfilegetICCProfile()
     Gets the images ICC profile.
public  ImagegetImageMask()
     Gets the explicit masking.
public  floatgetImageRotation()
     Gets the current image rotation in radians.
public  floatgetIndentationLeft()
     Gets the left indentation.
public  floatgetIndentationRight()
     Gets the right indentation.
public  floatgetInitialRotation()
     Getter for property initialRotation.
public static  ImagegetInstance(URL url)
     Gets an instance of an Image.
public static  ImagegetInstance(String filename)
     Gets an instance of an Image.
public static  ImagegetInstance(byte imgb)
    
public static  ImagegetInstance(int width, int height, int components, int bpc, byte data)
     Gets an instance of an Image in raw mode.
public static  ImagegetInstance(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data)
     Creates an Image with CCITT G3 or G4 compression.
public static  ImagegetInstance(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  ImagegetInstance(int width, int height, int components, int bpc, byte data, int transparency)
     Gets an instance of an Image in raw mode.
public static  ImagegetInstance(PdfTemplate template)
    
public static  ImagegetInstance(java.awt.Image image, java.awt.Color color, boolean forceBW)
     Gets an instance of an Image from a java.awt.Image.
public static  ImagegetInstance(java.awt.Image image, java.awt.Color color)
     Gets an instance of an Image from a java.awt.Image.
public static  ImagegetInstance(PdfWriter writer, java.awt.Image awtImage, float quality)
     Gets an instance of a Image from a java.awt.Image.
public static  ImagegetInstance(PdfContentByte cb, java.awt.Image awtImage, float quality)
     Gets an instance of a Image from a java.awt.Image.
public static  ImagegetInstance(PRIndirectReference ref)
     Reuses an existing image.
public static  ImagegetInstance(Image image)
    
public static  ImagegetInstance(java.util.Properties attributes)
     Returns an Image that has been constructed taking in account the value of some attributes .
public  PdfOCGgetLayer()
     Gets the layer this image belongs to.
public  LonggetMySerialId()
    
public  byte[]getOriginalData()
     Getter for property originalData.
public  intgetOriginalType()
     Getter for property originalType.
public  floatgetPlainHeight()
     Gets the plain height of the image.
public  floatgetPlainWidth()
     Gets the plain width of the image.
public  byte[]getRawData()
     Gets the raw data for the image.
public  floatgetScaledHeight()
     Gets the scaled height of the image.
public  floatgetScaledWidth()
     Gets the scaled width of the image.
protected static synchronized  LonggetSerialId()
     Creates a new serial id.
public  floatgetSpacingAfter()
     Gets the spacing before this image.
public  floatgetSpacingBefore()
     Gets the spacing before this image.
public  PdfTemplategetTemplateData()
     Gets the template to be used as an image.
public  int[]getTransparency()
     Returns the transparency.
public  URLgetUrl()
     Gets the String -representation of the reference to the image.
public  floatgetWidthPercentage()
     Getter for property widthPercentage.
public  floatgetXYRatio()
     Gets the X/Y pixel dimensionless aspect ratio.
public  booleanhasAbsolutePosition()
     Checks if the Images has to be added at an absolute position.
public  booleanhasAbsoluteX()
     Checks if the Images has to be added at an absolute X position.
public  booleanhasAbsoluteY()
     Checks if the Images has to be added at an absolute position.
public  booleanhasICCProfile()
     Checks is the image has an ICC profile.
public  floatindentationLeft()
     Gets the left indentation.
public  floatindentationRight()
     Gets the right indentation.
public  booleanisDeflated()
     Getter for property deflated.
public  booleanisImgRaw()
     Returns true if the image is a ImgRaw -object.
public  booleanisImgTemplate()
     Returns true if the image is an ImgTemplate -object.
public  booleanisInterpolation()
     Getter for property interpolation.
public  booleanisInvertMask()
     Returns true if the bits are to be inverted in the mask.
public  booleanisInverted()
    
public  booleanisJpeg()
     Returns true if the image is a Jpeg -object.
public  booleanisMask()
     Returns true if this Image is a mask.
public  booleanisMaskCandidate()
     Returns true if this Image has the requisites to be a mask.
public  booleanisSmask()
     Getter for property smask.
public  voidmakeMask()
     Make this Image a mask.
public  float[]matrix()
     Returns the transformation matrix of the image.
public  floatplainHeight()
     Gets the plain height of the image.
public  floatplainWidth()
     Gets the plain width of the image.
public  byte[]rawData()
     Gets the raw data for the image.
public  voidscaleAbsolute(float newWidth, float newHeight)
     Scale the image to an absolute width and an absolute height.
public  voidscaleAbsoluteHeight(float newHeight)
     Scale the image to an absolute height.
public  voidscaleAbsoluteWidth(float newWidth)
     Scale the image to an absolute width.
public  voidscalePercent(float percent)
     Scale the image to a certain percentage.
public  voidscalePercent(float percentX, float percentY)
     Scale the width and height of an image to a certain percentage.
public  voidscaleToFit(float fitWidth, float fitHeight)
     Scales the image so that it fits a certain width and height.
public  floatscaledHeight()
     Gets the scaled height of the image.
public  floatscaledWidth()
     Gets the scaled height of the image.
public  voidsetAbsolutePosition(float absoluteX, float absoluteY)
     Sets the absolute position of the Image.
public  voidsetAdditional(PdfDictionary additional)
     Sets the /Colorspace key.
public  voidsetAlignment(int alignment)
     Sets the alignment for the image.
public  voidsetAlt(String alt)
     Sets the alternative information for the image.
public  voidsetAnnotation(Annotation annotation)
     Sets the annotation of this Image.
public  voidsetDeflated(boolean deflated)
     Setter for property deflated.
public  voidsetDirectReference(PdfIndirectReference directReference)
     Setter for property directReference.
public  voidsetDpi(int dpiX, int dpiY)
    
public  voidsetImageMask(Image mask)
     Sets the explicit masking.
public  voidsetIndentationLeft(float f)
     Sets the left indentation.
public  voidsetIndentationRight(float f)
     Sets the right indentation.
public  voidsetInitialRotation(float initialRotation)
     Some image formats, like TIFF may present the images rotated that have to be compensated.
public  voidsetInterpolation(boolean interpolation)
     Sets the image interpolation.
public  voidsetInvertMask(boolean invert)
     Inverts the meaning of the bits of a mask.
public  voidsetInverted(boolean invert)
    
public  voidsetLayer(PdfOCG layer)
     Sets the layer this image belongs to.
public  voidsetOriginalData(byte[] originalData)
     Setter for property originalData.
public  voidsetOriginalType(int originalType)
     Setter for property originalType.
public  voidsetRotation(float r)
     Sets the rotation of the image in radians.
public  voidsetRotationDegrees(float deg)
     Sets the rotation of the image in degrees.
public  voidsetSmask(boolean smask)
     Setter for property smask.
public  voidsetSpacingAfter(float spacing)
     Sets the spacing after this image.
public  voidsetSpacingBefore(float spacing)
     Sets the spacing before this image.
public  voidsetTemplateData(PdfTemplate template)
    
public  voidsetTransparency(int transparency)
    
public  voidsetUrl(URL url)
    
public  voidsetWidthPercentage(float widthPercentage)
     Setter for property widthPercentage.
public  voidsetXYRatio(float XYRatio)
     Sets the X/Y pixel dimensionless aspect ratio.
public  voidsimplifyColorspace()
     Replaces CalRGB and CalGray colorspaces with DeviceRGB and DeviceGray.
public  floatspacingAfter()
     Gets the spacing before this image.
public  floatspacingBefore()
     Gets the spacing before this image.
public  voidtagICC(ICC_Profile profile)
     Tags this image with an ICC profile.
public  PdfTemplatetemplateData()
     Gets the template to be used as an image.
public  inttype()
     Returns the type.
public  URLurl()
     Gets the String -representation of the reference to the image.

Field Detail
AX
final public static int AX(Code)
This represents a coordinate in the transformation matrix.



AY
final public static int AY(Code)
This represents a coordinate in the transformation matrix.



BX
final public static int BX(Code)
This represents a coordinate in the transformation matrix.



BY
final public static int BY(Code)
This represents a coordinate in the transformation matrix.



CX
final public static int CX(Code)
This represents a coordinate in the transformation matrix.



CY
final public static int CY(Code)
This represents a coordinate in the transformation matrix.



DEFAULT
final public static int DEFAULT(Code)
this is a kind of image alignment.



DX
final public static int DX(Code)
This represents a coordinate in the transformation matrix.



DY
final public static int DY(Code)
This represents a coordinate in the transformation matrix.



LEFT
final public static int LEFT(Code)
this is a kind of image alignment.



MIDDLE
final public static int MIDDLE(Code)
this is a kind of image alignment.



ORIGINAL_BMP
final public static int ORIGINAL_BMP(Code)
type of image



ORIGINAL_GIF
final public static int ORIGINAL_GIF(Code)
type of image



ORIGINAL_JPEG
final public static int ORIGINAL_JPEG(Code)
type of image



ORIGINAL_NONE
final public static int ORIGINAL_NONE(Code)
type of image



ORIGINAL_PNG
final public static int ORIGINAL_PNG(Code)
type of image



ORIGINAL_PS
final public static int ORIGINAL_PS(Code)
type of image



ORIGINAL_TIFF
final public static int ORIGINAL_TIFF(Code)
type of image



ORIGINAL_WMF
final public static int ORIGINAL_WMF(Code)
type of image



RIGHT
final public static int RIGHT(Code)
this is a kind of image alignment.



TEXTWRAP
final public static int TEXTWRAP(Code)
this is a kind of image alignment.



UNDERLYING
final public static int UNDERLYING(Code)
this is a kind of image alignment.



absoluteX
protected float absoluteX(Code)
This is the absolute X-position of the image.



absoluteY
protected float absoluteY(Code)
This is the absolute Y-position of the image.



alignment
protected int alignment(Code)
The alignment of the Image.



alt
protected String alt(Code)
Text that can be shown instead of the image.



annotation
protected Annotation annotation(Code)
if the annotation is not null the image will be clickable.



bpc
protected int bpc(Code)
The bits per component of the raw image. It also flags a CCITT image.



colorspace
protected int colorspace(Code)
this is the colorspace of a jpeg-image.



deflated
protected boolean deflated(Code)
Holds value of property deflated.



dpiX
protected int dpiX(Code)
Holds value of property dpiX.



dpiY
protected int dpiY(Code)
Holds value of property dpiY.



imageMask
protected Image imageMask(Code)
The image that serves as a mask for this image.



indentationLeft
protected float indentationLeft(Code)
the indentation to the left.



indentationRight
protected float indentationRight(Code)
the indentation to the right.



interpolation
protected boolean interpolation(Code)
Holds value of property interpolation.



invert
protected boolean invert(Code)
Image color inversion



layer
protected PdfOCG layer(Code)
Optional Content layer to which we want this Image to belong.



mask
protected boolean mask(Code)
Is this image a mask?



mySerialId
protected Long mySerialId(Code)
an iText attributed unique id for this image.



originalData
protected byte[] originalData(Code)
Holds value of property originalData.



originalType
protected int originalType(Code)
Holds value of property originalType.



plainHeight
protected float plainHeight(Code)
This is the width of the image without rotation.



plainWidth
protected float plainWidth(Code)
This is the width of the image without rotation.



profile
protected ICC_Profile profile(Code)
ICC Profile attached



rawData
protected byte rawData(Code)
The raw data of the image.



rotationRadians
protected float rotationRadians(Code)
This is the rotation of the image in radians.



scaledHeight
protected float scaledHeight(Code)
This is the original height of the image taking rotation into account.



scaledWidth
protected float scaledWidth(Code)
This is the scaled width of the image taking rotation into account.



serialId
static long serialId(Code)
a static that is used for attributing a unique id to each image.



spacingAfter
protected float spacingAfter(Code)
The spacing after the image.



spacingBefore
protected float spacingBefore(Code)
The spacing before the image.



template
protected PdfTemplate template(Code)
The template to be treated as an image.



transparency
protected int transparency(Code)
this is the transparency information of the raw image



type
protected int type(Code)
The imagetype.



url
protected URL url(Code)
The URL of the image.




Constructor Detail
Image
public Image(URL url)(Code)
Constructs an Image -object, using an url .
Parameters:
  url - the URL where the image can be found.



Image
protected Image(Image image)(Code)
Constructs an Image -object, using an url .
Parameters:
  image - another Image object.




Method Detail
absoluteX
public float absoluteX()(Code)
Returns the absolute X position. a positionImage.getAbsoluteX()



absoluteY
public float absoluteY()(Code)
Returns the absolute Y position. a positionImage.getAbsoluteY()



alignment
public int alignment()(Code)
Gets the alignment for the image. a valueImage.getAlignment()



alt
public String alt()(Code)
Gets the alternative text for the image. a StringImage.getAlt()



annotation
public Annotation annotation()(Code)
Gets the annotation. the annotation that is linked to this imageImage.getAnnotation()



bpc
public int bpc()(Code)
Gets the bpc for the image.

Remark: this only makes sense for Images of the type RawImage . a bpc valueImage.getBpc()




colorspace
public int colorspace()(Code)
Gets the colorspace for the image.

Remark: this only makes sense for Images of the type Jpeg. a colorspace valueImage.getColorspace()




getAbsoluteX
public float getAbsoluteX()(Code)
Returns the absolute X position. a position



getAbsoluteY
public float getAbsoluteY()(Code)
Returns the absolute Y position. a position



getAdditional
public PdfDictionary getAdditional()(Code)
Getter for the dictionary with additional information. a PdfDictionary with additional information.



getAlignment
public int getAlignment()(Code)
Gets the alignment for the image. a value



getAlt
public String getAlt()(Code)
Gets the alternative text for the image. a String



getAnnotation
public Annotation getAnnotation()(Code)
Gets the annotation. the annotation that is linked to this image



getBpc
public int getBpc()(Code)
Gets the bpc for the image.

Remark: this only makes sense for Images of the type RawImage . a bpc value




getColorspace
public int getColorspace()(Code)
Gets the colorspace for the image.

Remark: this only makes sense for Images of the type Jpeg. a colorspace value




getDirectReference
public PdfIndirectReference getDirectReference()(Code)
Getter for property directReference. Value of property directReference.



getDpiX
public int getDpiX()(Code)
Gets the dots-per-inch in the X direction. Returns 0 if not available. the dots-per-inch in the X direction



getDpiY
public int getDpiY()(Code)
Gets the dots-per-inch in the Y direction. Returns 0 if not available. the dots-per-inch in the Y direction



getICCProfile
public ICC_Profile getICCProfile()(Code)
Gets the images ICC profile. the ICC profile



getImageMask
public Image getImageMask()(Code)
Gets the explicit masking. the explicit masking



getImageRotation
public float getImageRotation()(Code)
Gets the current image rotation in radians. the current image rotation in radians



getIndentationLeft
public float getIndentationLeft()(Code)
Gets the left indentation. the left indentation



getIndentationRight
public float getIndentationRight()(Code)
Gets the right indentation. the right indentation



getInitialRotation
public float getInitialRotation()(Code)
Getter for property initialRotation. Value of property initialRotation.



getInstance
public static Image getInstance(URL url) throws BadElementException, MalformedURLException, IOException(Code)
Gets an instance of an Image.
Parameters:
  url - an URL an Image
throws:
  BadElementException -
throws:
  MalformedURLException -
throws:
  IOException -



getInstance
public static Image getInstance(String filename) throws BadElementException, MalformedURLException, IOException(Code)
Gets an instance of an Image.
Parameters:
  filename - a filename an object of type Gif,Jpeg orPng
throws:
  BadElementException -
throws:
  MalformedURLException -
throws:
  IOException -



getInstance
public static Image getInstance(byte imgb) throws BadElementException, MalformedURLException, IOException(Code)
gets an instance of an Image
Parameters:
  imgb - raw image date an Image object
throws:
  BadElementException -
throws:
  MalformedURLException -
throws:
  IOException -



getInstance
public static Image getInstance(int width, int height, int components, int bpc, byte data) throws BadElementException(Code)
Gets an instance of an Image in raw mode.
Parameters:
  width - the width of the image in pixels
Parameters:
  height - the height of the image in pixels
Parameters:
  components - 1,3 or 4 for GrayScale, RGB and CMYK
Parameters:
  data - the image data
Parameters:
  bpc - bits per component an object of type ImgRaw
throws:
  BadElementException - on error



getInstance
public static Image getInstance(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data) throws BadElementException(Code)
Creates an Image with CCITT G3 or G4 compression. It assumes that the data bytes are already compressed.
Parameters:
  width - the exact width of the image
Parameters:
  height - the exact height of the image
Parameters:
  reverseBits - reverses the bits in data. Bit 0 is swappedwith bit 7 and so on
Parameters:
  typeCCITT - the type of compression in data. It can beCCITTG4, CCITTG31D, CCITTG32D
Parameters:
  parameters - parameters associated with this stream. Possible values areCCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFLINE andCCITT_ENDOFBLOCK or a combination of them
Parameters:
  data - the image data an Image object
throws:
  BadElementException - on error



getInstance
public static Image getInstance(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data, int transparency) throws BadElementException(Code)
Creates an Image with CCITT G3 or G4 compression. It assumes that the data bytes are already compressed.
Parameters:
  width - the exact width of the image
Parameters:
  height - the exact height of the image
Parameters:
  reverseBits - reverses the bits in data. Bit 0 is swappedwith bit 7 and so on
Parameters:
  typeCCITT - the type of compression in data. It can beCCITTG4, CCITTG31D, CCITTG32D
Parameters:
  parameters - parameters associated with this stream. Possible values areCCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFLINE andCCITT_ENDOFBLOCK or a combination of them
Parameters:
  data - the image data
Parameters:
  transparency - transparency information in the Mask format of the imagedictionary an Image object
throws:
  BadElementException - on error



getInstance
public static Image getInstance(int width, int height, int components, int bpc, byte data, int transparency) throws BadElementException(Code)
Gets an instance of an Image in raw mode.
Parameters:
  width - the width of the image in pixels
Parameters:
  height - the height of the image in pixels
Parameters:
  components - 1,3 or 4 for GrayScale, RGB and CMYK
Parameters:
  data - the image data
Parameters:
  bpc - bits per component
Parameters:
  transparency - transparency information in the Mask format of the imagedictionary an object of type ImgRaw
throws:
  BadElementException - on error



getInstance
public static Image getInstance(PdfTemplate template) throws BadElementException(Code)
gets an instance of an Image
Parameters:
  template - a PdfTemplate that has to be wrapped in an Image object an Image object
throws:
  BadElementException -



getInstance
public static Image getInstance(java.awt.Image image, java.awt.Color color, boolean forceBW) throws BadElementException, IOException(Code)
Gets an instance of an Image from a java.awt.Image.
Parameters:
  image - the java.awt.Image to convert
Parameters:
  color - if different from null the transparency pixelsare replaced by this color
Parameters:
  forceBW - if true the image is treated as black and white an object of type ImgRaw
throws:
  BadElementException - on error
throws:
  IOException - on error



getInstance
public static Image getInstance(java.awt.Image image, java.awt.Color color) throws BadElementException, IOException(Code)
Gets an instance of an Image from a java.awt.Image.
Parameters:
  image - the java.awt.Image to convert
Parameters:
  color - if different from null the transparency pixelsare replaced by this color an object of type ImgRaw
throws:
  BadElementException - on error
throws:
  IOException - on error



getInstance
public static Image getInstance(PdfWriter writer, java.awt.Image awtImage, float quality) throws BadElementException, IOException(Code)
Gets an instance of a Image from a java.awt.Image. The image is added as a JPEG with a userdefined quality.
Parameters:
  writer - the PdfWriter object to which the image will be added
Parameters:
  awtImage - the java.awt.Image to convert
Parameters:
  quality - a float value between 0 and 1 an object of type PdfTemplate
throws:
  BadElementException - on error
throws:
  IOException -



getInstance
public static Image getInstance(PdfContentByte cb, java.awt.Image awtImage, float quality) throws BadElementException, IOException(Code)
Gets an instance of a Image from a java.awt.Image. The image is added as a JPEG with a userdefined quality.
Parameters:
  cb - the PdfContentByte object to which the image will be added
Parameters:
  awtImage - the java.awt.Image to convert
Parameters:
  quality - a float value between 0 and 1 an object of type PdfTemplate
throws:
  BadElementException - on error
throws:
  IOException -



getInstance
public static Image getInstance(PRIndirectReference ref) throws BadElementException(Code)
Reuses an existing image.
Parameters:
  ref - the reference to the image dictionary
throws:
  BadElementException - on error the image



getInstance
public static Image getInstance(Image image)(Code)
gets an instance of an Image
Parameters:
  image - an Image object a new Image object



getInstance
public static Image getInstance(java.util.Properties attributes) throws BadElementException, MalformedURLException, IOException(Code)
Returns an Image that has been constructed taking in account the value of some attributes .
Parameters:
  attributes - Some attributes an Image
throws:
  BadElementException -
throws:
  MalformedURLException -
throws:
  IOException -



getLayer
public PdfOCG getLayer()(Code)
Gets the layer this image belongs to. the layer this image belongs to or null for nolayer defined



getMySerialId
public Long getMySerialId()(Code)
Returns a serial id for the Image (reuse the same image more than once) a serialId



getOriginalData
public byte[] getOriginalData()(Code)
Getter for property originalData. Value of property originalData.



getOriginalType
public int getOriginalType()(Code)
Getter for property originalType. Value of property originalType.



getPlainHeight
public float getPlainHeight()(Code)
Gets the plain height of the image. a value



getPlainWidth
public float getPlainWidth()(Code)
Gets the plain width of the image. a value



getRawData
public byte[] getRawData()(Code)
Gets the raw data for the image.

Remark: this only makes sense for Images of the type RawImage . the raw data




getScaledHeight
public float getScaledHeight()(Code)
Gets the scaled height of the image. a value



getScaledWidth
public float getScaledWidth()(Code)
Gets the scaled width of the image. a value



getSerialId
protected static synchronized Long getSerialId()(Code)
Creates a new serial id.



getSpacingAfter
public float getSpacingAfter()(Code)
Gets the spacing before this image. the spacing



getSpacingBefore
public float getSpacingBefore()(Code)
Gets the spacing before this image. the spacing



getTemplateData
public PdfTemplate getTemplateData()(Code)
Gets the template to be used as an image.

Remark: this only makes sense for Images of the type ImgTemplate . the template




getTransparency
public int[] getTransparency()(Code)
Returns the transparency. the transparency values



getUrl
public URL getUrl()(Code)
Gets the String -representation of the reference to the image. a String



getWidthPercentage
public float getWidthPercentage()(Code)
Getter for property widthPercentage. Value of property widthPercentage.



getXYRatio
public float getXYRatio()(Code)
Gets the X/Y pixel dimensionless aspect ratio. the X/Y pixel dimensionless aspect ratio



hasAbsolutePosition
public boolean hasAbsolutePosition()(Code)
Checks if the Images has to be added at an absolute position. a booleanImage.hasAbsoluteY()



hasAbsoluteX
public boolean hasAbsoluteX()(Code)
Checks if the Images has to be added at an absolute X position. a boolean



hasAbsoluteY
public boolean hasAbsoluteY()(Code)
Checks if the Images has to be added at an absolute position. a boolean



hasICCProfile
public boolean hasICCProfile()(Code)
Checks is the image has an ICC profile. the ICC profile or null



indentationLeft
public float indentationLeft()(Code)
Gets the left indentation. the left indentationImage.getIndentationLeft()



indentationRight
public float indentationRight()(Code)
Gets the right indentation. the right indentationImage.getIndentationRight()



isDeflated
public boolean isDeflated()(Code)
Getter for property deflated. Value of property deflated.



isImgRaw
public boolean isImgRaw()(Code)
Returns true if the image is a ImgRaw -object. a boolean



isImgTemplate
public boolean isImgTemplate()(Code)
Returns true if the image is an ImgTemplate -object. a boolean



isInterpolation
public boolean isInterpolation()(Code)
Getter for property interpolation. Value of property interpolation.



isInvertMask
public boolean isInvertMask()(Code)
Returns true if the bits are to be inverted in the mask. true if the bits are to be inverted in the mask



isInverted
public boolean isInverted()(Code)
Getter for the inverted value true if the image is inverted



isJpeg
public boolean isJpeg()(Code)
Returns true if the image is a Jpeg -object. a boolean



isMask
public boolean isMask()(Code)
Returns true if this Image is a mask. true if this Image is a mask



isMaskCandidate
public boolean isMaskCandidate()(Code)
Returns true if this Image has the requisites to be a mask. true if this Image can be a mask



isSmask
public boolean isSmask()(Code)
Getter for property smask. Value of property smask.



makeMask
public void makeMask() throws DocumentException(Code)
Make this Image a mask.
throws:
  DocumentException - if this Image can not be a mask



matrix
public float[] matrix()(Code)
Returns the transformation matrix of the image. an array [AX, AY, BX, BY, CX, CY, DX, DY]



plainHeight
public float plainHeight()(Code)
Gets the plain height of the image. a valueImage.getPlainHeight()



plainWidth
public float plainWidth()(Code)
Gets the plain width of the image. a valueImage.getPlainWidth()



rawData
public byte[] rawData()(Code)
Gets the raw data for the image.

Remark: this only makes sense for Images of the type RawImage . the raw dataImage.getRawData()




scaleAbsolute
public void scaleAbsolute(float newWidth, float newHeight)(Code)
Scale the image to an absolute width and an absolute height.
Parameters:
  newWidth - the new width
Parameters:
  newHeight - the new height



scaleAbsoluteHeight
public void scaleAbsoluteHeight(float newHeight)(Code)
Scale the image to an absolute height.
Parameters:
  newHeight - the new height



scaleAbsoluteWidth
public void scaleAbsoluteWidth(float newWidth)(Code)
Scale the image to an absolute width.
Parameters:
  newWidth - the new width



scalePercent
public void scalePercent(float percent)(Code)
Scale the image to a certain percentage.
Parameters:
  percent - the scaling percentage



scalePercent
public void scalePercent(float percentX, float percentY)(Code)
Scale the width and height of an image to a certain percentage.
Parameters:
  percentX - the scaling percentage of the width
Parameters:
  percentY - the scaling percentage of the height



scaleToFit
public void scaleToFit(float fitWidth, float fitHeight)(Code)
Scales the image so that it fits a certain width and height.
Parameters:
  fitWidth - the width to fit
Parameters:
  fitHeight - the height to fit



scaledHeight
public float scaledHeight()(Code)
Gets the scaled height of the image. a valueImage.getScaledHeight()



scaledWidth
public float scaledWidth()(Code)
Gets the scaled height of the image. a valueImage.getScaledWidth()



setAbsolutePosition
public void setAbsolutePosition(float absoluteX, float absoluteY)(Code)
Sets the absolute position of the Image.
Parameters:
  absoluteX -
Parameters:
  absoluteY -



setAdditional
public void setAdditional(PdfDictionary additional)(Code)
Sets the /Colorspace key.
Parameters:
  additional - a PdfDictionary with additional information.



setAlignment
public void setAlignment(int alignment)(Code)
Sets the alignment for the image.
Parameters:
  alignment - the alignment



setAlt
public void setAlt(String alt)(Code)
Sets the alternative information for the image.
Parameters:
  alt - the alternative information



setAnnotation
public void setAnnotation(Annotation annotation)(Code)
Sets the annotation of this Image.
Parameters:
  annotation - the annotation



setDeflated
public void setDeflated(boolean deflated)(Code)
Setter for property deflated.
Parameters:
  deflated - New value of property deflated.



setDirectReference
public void setDirectReference(PdfIndirectReference directReference)(Code)
Setter for property directReference.
Parameters:
  directReference - New value of property directReference.



setDpi
public void setDpi(int dpiX, int dpiY)(Code)
Sets the dots per inch value
Parameters:
  dpiX - dpi for x coordinates
Parameters:
  dpiY - dpi for y coordinates



setImageMask
public void setImageMask(Image mask) throws DocumentException(Code)
Sets the explicit masking.
Parameters:
  mask - the mask to be applied
throws:
  DocumentException - on error



setIndentationLeft
public void setIndentationLeft(float f)(Code)
Sets the left indentation.
Parameters:
  f -



setIndentationRight
public void setIndentationRight(float f)(Code)
Sets the right indentation.
Parameters:
  f -



setInitialRotation
public void setInitialRotation(float initialRotation)(Code)
Some image formats, like TIFF may present the images rotated that have to be compensated.
Parameters:
  initialRotation - New value of property initialRotation.



setInterpolation
public void setInterpolation(boolean interpolation)(Code)
Sets the image interpolation. Image interpolation attempts to produce a smooth transition between adjacent sample values.
Parameters:
  interpolation - New value of property interpolation.



setInvertMask
public void setInvertMask(boolean invert)(Code)
Inverts the meaning of the bits of a mask.
Parameters:
  invert - true to invert the meaning of the bits of amask



setInverted
public void setInverted(boolean invert)(Code)
Sets inverted true or false
Parameters:
  invert - true or false



setLayer
public void setLayer(PdfOCG layer)(Code)
Sets the layer this image belongs to.
Parameters:
  layer - the layer this image belongs to



setOriginalData
public void setOriginalData(byte[] originalData)(Code)
Setter for property originalData.
Parameters:
  originalData - New value of property originalData.



setOriginalType
public void setOriginalType(int originalType)(Code)
Setter for property originalType.
Parameters:
  originalType - New value of property originalType.



setRotation
public void setRotation(float r)(Code)
Sets the rotation of the image in radians.
Parameters:
  r - rotation in radians



setRotationDegrees
public void setRotationDegrees(float deg)(Code)
Sets the rotation of the image in degrees.
Parameters:
  deg - rotation in degrees



setSmask
public void setSmask(boolean smask)(Code)
Setter for property smask.
Parameters:
  smask - New value of property smask.



setSpacingAfter
public void setSpacingAfter(float spacing)(Code)
Sets the spacing after this image.
Parameters:
  spacing - the new spacing



setSpacingBefore
public void setSpacingBefore(float spacing)(Code)
Sets the spacing before this image.
Parameters:
  spacing - the new spacing



setTemplateData
public void setTemplateData(PdfTemplate template)(Code)
Sets data from a PdfTemplate
Parameters:
  template - the template with the content



setTransparency
public void setTransparency(int transparency)(Code)
Sets the transparency values
Parameters:
  transparency - the transparency values



setUrl
public void setUrl(URL url)(Code)
Sets the url of the image
Parameters:
  url - the url of the image



setWidthPercentage
public void setWidthPercentage(float widthPercentage)(Code)
Setter for property widthPercentage.
Parameters:
  widthPercentage - New value of property widthPercentage.



setXYRatio
public void setXYRatio(float XYRatio)(Code)
Sets the X/Y pixel dimensionless aspect ratio.
Parameters:
  XYRatio - the X/Y pixel dimensionless aspect ratio



simplifyColorspace
public void simplifyColorspace()(Code)
Replaces CalRGB and CalGray colorspaces with DeviceRGB and DeviceGray.



spacingAfter
public float spacingAfter()(Code)
Gets the spacing before this image. the spacingImage.getSpacingAfter()



spacingBefore
public float spacingBefore()(Code)
Gets the spacing before this image. the spacingImage.getSpacingBefore()



tagICC
public void tagICC(ICC_Profile profile)(Code)
Tags this image with an ICC profile.
Parameters:
  profile - the profile



templateData
public PdfTemplate templateData()(Code)
Gets the template to be used as an image.

Remark: this only makes sense for Images of the type ImgTemplate . the templateImage.getTemplateData()




type
public int type()(Code)
Returns the type. a type



url
public URL url()(Code)
Gets the String -representation of the reference to the image. a StringImage.getUrl()



Fields inherited from com.lowagie.text.Rectangle
final public static int BOTTOM(Code)(Java Doc)
final public static int BOX(Code)(Java Doc)
final public static int LEFT(Code)(Java Doc)
final public static int NO_BORDER(Code)(Java Doc)
final public static int RIGHT(Code)(Java Doc)
final public static int TOP(Code)(Java Doc)
final public static int UNDEFINED(Code)(Java Doc)
protected Color backgroundColor(Code)(Java Doc)
protected int border(Code)(Java Doc)
protected Color borderColor(Code)(Java Doc)
protected Color borderColorBottom(Code)(Java Doc)
protected Color borderColorLeft(Code)(Java Doc)
protected Color borderColorRight(Code)(Java Doc)
protected Color borderColorTop(Code)(Java Doc)
protected float borderWidth(Code)(Java Doc)
protected float borderWidthBottom(Code)(Java Doc)
protected float borderWidthLeft(Code)(Java Doc)
protected float borderWidthRight(Code)(Java Doc)
protected float borderWidthTop(Code)(Java Doc)
protected float llx(Code)(Java Doc)
protected float lly(Code)(Java Doc)
protected int rotation(Code)(Java Doc)
protected float urx(Code)(Java Doc)
protected float ury(Code)(Java Doc)
protected boolean useVariableBorders(Code)(Java Doc)

Methods inherited from com.lowagie.text.Rectangle
public Color backgroundColor()(Code)(Java Doc)
public int border()(Code)(Java Doc)
public Color borderColor()(Code)(Java Doc)
public float borderWidth()(Code)(Java Doc)
public float bottom()(Code)(Java Doc)
public float bottom(float margin)(Code)(Java Doc)
public void cloneNonPositionParameters(Rectangle rect)(Code)(Java Doc)
public void disableBorderSide(int side)(Code)(Java Doc)
public void enableBorderSide(int side)(Code)(Java Doc)
public Color getBackgroundColor()(Code)(Java Doc)
public int getBorder()(Code)(Java Doc)
public Color getBorderColor()(Code)(Java Doc)
public Color getBorderColorBottom()(Code)(Java Doc)
public Color getBorderColorLeft()(Code)(Java Doc)
public Color getBorderColorRight()(Code)(Java Doc)
public Color getBorderColorTop()(Code)(Java Doc)
public float getBorderWidth()(Code)(Java Doc)
public float getBorderWidthBottom()(Code)(Java Doc)
public float getBorderWidthLeft()(Code)(Java Doc)
public float getBorderWidthRight()(Code)(Java Doc)
public float getBorderWidthTop()(Code)(Java Doc)
public float getBottom()(Code)(Java Doc)
public float getBottom(float margin)(Code)(Java Doc)
public ArrayList getChunks()(Code)(Java Doc)
public float getGrayFill()(Code)(Java Doc)
public float getHeight()(Code)(Java Doc)
public float getLeft()(Code)(Java Doc)
public float getLeft(float margin)(Code)(Java Doc)
public float getRight()(Code)(Java Doc)
public float getRight(float margin)(Code)(Java Doc)
public int getRotation()(Code)(Java Doc)
public float getTop()(Code)(Java Doc)
public float getTop(float margin)(Code)(Java Doc)
public float getWidth()(Code)(Java Doc)
public float grayFill()(Code)(Java Doc)
public boolean hasBorder(int type)(Code)(Java Doc)
public boolean hasBorders()(Code)(Java Doc)
public float height()(Code)(Java Doc)
public boolean isUseVariableBorders()(Code)(Java Doc)
public float left()(Code)(Java Doc)
public float left(float margin)(Code)(Java Doc)
public void normalize()(Code)(Java Doc)
public boolean process(ElementListener listener)(Code)(Java Doc)
public Rectangle rectangle(float top, float bottom)(Code)(Java Doc)
public float right()(Code)(Java Doc)
public float right(float margin)(Code)(Java Doc)
public Rectangle rotate()(Code)(Java Doc)
public void setBackgroundColor(Color value)(Code)(Java Doc)
public void setBorder(int value)(Code)(Java Doc)
public void setBorderColor(Color value)(Code)(Java Doc)
public void setBorderColorBottom(Color value)(Code)(Java Doc)
public void setBorderColorLeft(Color value)(Code)(Java Doc)
public void setBorderColorRight(Color value)(Code)(Java Doc)
public void setBorderColorTop(Color value)(Code)(Java Doc)
public void setBorderWidth(float value)(Code)(Java Doc)
public void setBorderWidthBottom(float borderWidthBottom)(Code)(Java Doc)
public void setBorderWidthLeft(float borderWidthLeft)(Code)(Java Doc)
public void setBorderWidthRight(float borderWidthRight)(Code)(Java Doc)
public void setBorderWidthTop(float borderWidthTop)(Code)(Java Doc)
public void setBottom(float value)(Code)(Java Doc)
public void setGrayFill(float value)(Code)(Java Doc)
public void setLeft(float value)(Code)(Java Doc)
public void setRight(float value)(Code)(Java Doc)
public void setTop(float value)(Code)(Java Doc)
public void setUseVariableBorders(boolean useVariableBorders)(Code)(Java Doc)
public void softCloneNonPositionParameters(Rectangle rect)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public float top()(Code)(Java Doc)
public float top(float margin)(Code)(Java Doc)
public int type()(Code)(Java Doc)
public float width()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.