xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46141] New: Graphics2D ImageConverters make coordinate system assumption which is incorrect for AFP
Date Mon, 03 Nov 2008 18:15:55 GMT

           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: general@xmlgraphics.apache.org
        ReportedBy: dev@cumiskey.com

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: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org

View raw message