Hi Thomas,
I have a class which extends GearWindow.  I initialize the class with the
following snippet of code:

        canvas = new JSVGCanvas();
        canvas.setSize(400,400);
        this.setSize(400, 400);
        canvas.setOpaque(false);
        canvas.setBackground(new Color(0x0, true));

I use a <g> tag as the top level tag with the following settings:

 <g
     inkscape:label="Layer 1"
     inkscape:groupmode="layer"
     id="main_window"
     width="237"
     height="216" style="fill:#ffffff00">

Any ideas?

Mark


On 10/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi Mark,
>
> "Mark Fortner" <[EMAIL PROTECTED]> wrote on 09/14/2007 01:22:29 PM:
>
> > I'm trying to create an SVG-based widget system using batik.  I've
> > created a proof-of-concept app, but I'm having problems getting the
> > widget to display without a background color.  I've used the
> > information in the following bug report to set the alpha to 0 (
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=40392) but that
> > doesn't seem to fix the problem.
>
>     Your note implies it but just to make 100% sure.  You are
> calling jsvgcanvas.setBackground(new Color(0x0, true)) as well
> as calling jsvgcanvas.setOpaque(false), correct?
>
>     Also is it possible that your SVG document has a 'background color'?
> Usually just a large rectangle as one of the first children of the
> root svg element (often with width="100%" height="100%").
>

Reply via email to