import java.awt.geom.AffineTransform;\r
import java.awt.geom.Point2D;\r
import java.awt.geom.Rectangle2D;\r
+import java.awt.image.BufferedImage;\r
import java.io.IOException;\r
import java.io.InputStream;\r
\r
renderer.setAlpha(alpha/100000.f);\r
}\r
\r
+ BufferedImage image = renderer.getImage();\r
+ if(image == null) {\r
+ LOG.log(POILogger.ERROR, "Can't load image data");\r
+ return null;\r
+ }\r
Rectangle2D textAnchor = shape.getAnchor();\r
- Paint paint = new java.awt.TexturePaint(renderer.getImage(), textAnchor);\r
+ Paint paint = new java.awt.TexturePaint(image, textAnchor);\r
\r
return paint;\r
}\r