Package com.itextpdf.io.image
Class AwtImageDataFactory
java.lang.Object
com.itextpdf.io.image.AwtImageDataFactory
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AwtImageDataFactory
AwtImageDataFactory()
-
-
Method Details
-
create
Gets an instance of an Image from aImage
- Parameters:
image
- theImage
to convertcolor
- if different fromnull
the transparency pixels are replaced by this color- Returns:
- RawImage
- Throws:
IOException
-
create
Gets an instance of an Image from a java.awt.Image.- Parameters:
image
- thejava.awt.Image
to convertcolor
- if different fromnull
the transparency pixels are replaced by this colorforceBW
- iftrue
the image is treated as black and white- Returns:
- RawImage
- Throws:
IOException
-