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

JGVTComponent doesn't respect the opacity setting

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Incomplete
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: GVT
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other

      Description

      The JGVTComponent.paintComponent ignores the opacity setting and paints the
      background in any case:

      g2d.setComposite(AlphaComposite.SrcOver);
      g2d.setPaint(getBackground());
      g2d.fillRect(visRect.x, visRect.y,
      visRect.width, visRect.height);

      A workaround is to set the background to new Color(0x0, true)

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              kirillcool@yahoo.com Kirill Grouchnikov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: