xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46353] setOpaque(false) not honoured
Date Sat, 06 Dec 2008 02:01:36 GMT

Thomas Deweese <deweese@apache.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Thomas Deweese <deweese@apache.org>  2008-12-05 18:01:35 PST ---
(In reply to comment #0)
> JSVGCanvas and JSVGComponent ignore setOpaque() and always draw a background

  Correct it always draws the background color you tell it to.
There is no reason that setOpaque should disable this, the
background color may be semi-transparent.

> but perhaps this should be wrapped in a isOpaque check?


> current workaround (which maybe processor heavy) is to set the component
> background to a color with a alpha channel set to 0 (e.g. setBackground(new
> Color(0,0,0,0));

   This is the correct solution.  I'd be suprised if it was processor 
intensive as the Graphics2D engine almost certainly will skip actually
drawing the rect if the color has an opacity of zero.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org

View raw message