You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/12/06 03:01:36 UTC
DO NOT REPLY [Bug 46353] setOpaque(false) not honoured
https://issues.apache.org/bugzilla/show_bug.cgi?id=46353
Thomas Deweese <de...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Thomas Deweese <de...@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?
No.
> 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