DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15409>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15409

bitmap images appear with vertical displacement in PS renderer

           Summary: bitmap images appear with vertical displacement in PS
                    renderer
           Product: Fop
           Version: 0.20.5
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: general
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In the PostScript renderer, bitmap images such as GIFs appear vertically
displaced. The offset is identical to the image's height.

Here's the fix (subtracting the height is the main thing, but I think
adjusting the current position is also necessary according to the
renderer's logic):

diff ./PSRenderer.java
/local/archive/apache/fop/orig/fop-0.20.5rc/src/org/apache/fop/render/ps/PSRenderer.java
638a638
>         int y = this.currentYPosition + ploffset;
641,642c641,642
<         int y = this.currentYPosition + ploffset - h;
<         this.currentYPosition -= h;
---
> 
>         //this.currentYPosition -= h;

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to