Hi Jonathan and Ying, > ying lcs <[EMAIL PROTECTED]> wrote:
>> How can I create a svg with transparent background in batik? Jonathan Chetwynd <[EMAIL PROTECTED]> wrote on 04/18/2008 03:10:27 AM: > in general backgrounds will be transparent, unless a rectangle is > defined to fill the svg as in the attached signature using this file: > http://www.peepo.co.uk/temp/Thundery-shower.svg > > remove the initial rectangle and the svg has a transparent background. Right, unless something draws something the background will be transparent. So probably there is something that is filling in the background. > alternatively set the opacity to a low number such as 0.004, this > will retain the interactivity onmouseover if desired This is not a particularly good way to accomplish this, as the renderer will generally feel obligated to actually render that rectangle. You are much better off using: 'visibility="hidden" pointer-events="fill"' which will let the renderer know that it can skip the element but still have it sensitive to user events.
