poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54433] NullPointerException when Initializing the AffineTransform Object as part of the XSLFGroupShape.draw(Graphics2D graphics) method
Date Wed, 16 Jan 2013 15:59:30 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54433

--- Comment #3 from Craig@Stoss.ca ---
Apologies, ignore that previous comment code... my code matches yours, I must
have had copy/paste mistake:

                // default rendering options
                graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
                graphics.setRenderingHint(RenderingHints.KEY_RENDERING,
RenderingHints.VALUE_RENDER_QUALITY);
                graphics.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
RenderingHints.VALUE_INTERPOLATION_BICUBIC);
                graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
RenderingHints.VALUE_FRACTIONALMETRICS_ON);
                graphics.setRenderingHint(XSLFRenderingHint.GROUP_TRANSFORM
,new AffineTransform());
                graphics.setColor(Color.BLUE);
                graphics.clearRect(0, 0, width, height);    
                graphics.scale(scale, scale);
                pdp.draw(graphics);

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message