Bug 30214 - PSGraphics2D.drawImage incorrect matrix generated
Summary: PSGraphics2D.drawImage incorrect matrix generated
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: images (show other bugs)
Version: 0.20.5
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-20 17:30 UTC by notzippy
Modified: 2007-04-14 21:50 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description notzippy 2004-07-20 17:30:18 UTC
Hi

The image in the postscript file is not transformed to the proper location. I
traced it down to the following function call:
PSGraphics2D.drawImage calls 
gen.concatMatrix(AffineTransform);
to generate a matrix for an image. This writes (for example)
[1 0 0 1 18 18] concat
to the Postscript file.
This is incorrect since the current scale is 1000
It should generate 
[1 0 0 1 18000 18000] concat

By changing the line (gen.concatMatrix(AffineTransform);) to
gen.writeln("[" + toArray(at) + "] concat"); 
the correct matrix is generated.

BTW awesome program !