Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-906

PSGraphics2D.drawImage incorrect matrix generated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 0.20.5
    • None
    • image/unqualified
    • None
    • Operating System: other
      Platform: Other
    • 30214

    Description

      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 !

      Attachments

        Activity

          People

            Unassigned Unassigned
            notzippy@hotmail.com notzippy
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: