Bug 30214

Summary: PSGraphics2D.drawImage incorrect matrix generated
Product: Fop - Now in Jira Reporter: notzippy
Component: imagesAssignee: fop-dev
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 0.20.5   
Target Milestone: ---   
Hardware: Other   
OS: other   

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 !