Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1190

[PATCH] Prevent pixelated image textures

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: SVGGraphics2D
    • Labels:
      None

      Description

      I run into a problem with image textures by using the SVGGraphics2d implementation. In my scenario i paint the SVG relatively small, because the data source provides size informations in centimeters. The scale is defined at the beginning of the painting process and is set in the SVGGrahics2d object. The problem is that the SVGTexturePaint scales down the textures with the unscaled size informations of the target box, so image data get lost. The upscaling of the SVG results in pixelated textures.

      My proposal is to introduce a rendering hint, which adds only a scale tag to the texture image and keep the hole image data. So a later scaling will not destroy the textures.

      A patch file is added, the 'rescaleTexture' switch should be set with a hint.

        Attachments

        1. after_patch.png
          196 kB
          Oliver Heuschele
        2. bevor_patch.png
          190 kB
          Oliver Heuschele
        3. use_full_texture.patch
          4 kB
          Oliver Heuschele

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              oheuschele Oliver Heuschele
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: