@@ -48,15 +48,15 @@ This file is part of the iText (R) project.
48
48
import java .awt .image .ImageObserver ;
49
49
import java .awt .image .PixelGrabber ;
50
50
51
- class AwtImageFactory {
51
+ class AwtImageDataFactory {
52
52
/**
53
53
* Gets an instance of an Image from a java.awt.Image
54
54
* @param image the java.awt.Image to convert
55
55
* @param color if different from <CODE>null</CODE> the transparency pixels are replaced by this color
56
56
* @return RawImage
57
57
*/
58
- public static ImageData getImage (java .awt .Image image , java .awt .Color color ) throws java .io .IOException {
59
- return AwtImageFactory . getImage (image , color , false );
58
+ public static ImageData create (java .awt .Image image , java .awt .Color color ) throws java .io .IOException {
59
+ return AwtImageDataFactory . create (image , color , false );
60
60
}
61
61
62
62
/**
@@ -66,7 +66,7 @@ public static ImageData getImage(java.awt.Image image, java.awt.Color color) thr
66
66
* @param forceBW if <CODE>true</CODE> the image is treated as black and white
67
67
* @return RawImage
68
68
*/
69
- public static ImageData getImage (java .awt .Image image , java .awt .Color color , boolean forceBW ) throws java .io .IOException {
69
+ public static ImageData create (java .awt .Image image , java .awt .Color color , boolean forceBW ) throws java .io .IOException {
70
70
if (image instanceof BufferedImage ) {
71
71
BufferedImage bi = (BufferedImage ) image ;
72
72
if (bi .getType () == BufferedImage .TYPE_BYTE_BINARY && bi .getColorModel ().getPixelSize () == 1 ) {
0 commit comments