https://issues.apache.org/bugzilla/show_bug.cgi?id=46141
Summary: Graphics2D ImageConverters make coordinate system
assumption which is incorrect for AFP
Product: XMLGraphicsCommons
Version: Trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P1
Component: Image codecs
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
The ImageConverter*2G2D implementing classes in XG Commons make the assumption
when creating their Graphics2DImagePainter implementations that the coordinate
system used by the Graphics2D implementation follows the 'Standard' bottom to
top ascending x and left to right y ascending axis. This assumption is fine
for most cases but in the case of AFPGraphics2D implementation the coordinate
system is different and you have a descending y axis.
^ ------------------>
| |
| |
| |
| |
| |
|-----------------> |
Standard AFPGraphics2D (GOCA)
So for AFPGraphics2D you need to a different translation and scale
AffineTransform matrix to paint correctly. At the moment this translation and
scale preparation is hardwired inside the paint(Graphics2D g2d, Rectangle2D
area) method of the Graphics2DImagePainter implementation/instance.
There needs to be a separation of concerns between the painting and the
preparation for painting (which can be Graphics2D implementation specific).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]