Package com.itextpdf.io.image
Class AwtImageDataFactory
- java.lang.Object
-
- com.itextpdf.io.image.AwtImageDataFactory
-
class AwtImageDataFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AwtImageDataFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImageData
create(java.awt.Image image, java.awt.Color color)
Gets an instance of an Image from aImage
static ImageData
create(java.awt.Image image, java.awt.Color color, boolean forceBW)
Gets an instance of an Image from a java.awt.Image.
-
-
-
Method Detail
-
create
public static ImageData create(java.awt.Image image, java.awt.Color color) throws java.io.IOException
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:
java.io.IOException
-
create
public static ImageData create(java.awt.Image image, java.awt.Color color, boolean forceBW) throws java.io.IOException
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:
java.io.IOException
-
-