List Info

Thread: Re: JSVGCanvas#setOpaque method not working.




Re: JSVGCanvas#setOpaque method not working.
country flaguser name
United States
2007-10-19 08:05:32

"Hi Mark,

"Mark Fortner&quot; <phidias51gmail.com&gt; wrote on 10/04/2007 10:35:04 AM:

&gt; I have a class which extends GearWindow.  I initialize the class
> with the following snippet of code:

    Well I have no idea what a GearWindow is, so I can't say if it
might be part of the problem.

> I use a <g> tag as the top level tag with the following settings:
>  <g
>      inkscape:label="Layer 1"
>      inkscape:groupmode="layer"
>      id=&quot;main_window"
>      width="237"
&gt;      height="216" style=&quot;fill:#ffffff00">

   Your fill spec is a little suspicious, it looks like it
is trying to define a transparent white color, but that isn't
how you do that.  So if you are filling a rect with that default
fill then that is your problem...

> On 10/4/07, thomas.deweesekodak.com <thomas.deweesekodak.com&gt; wrote:
>
> Hi Mark,
>
> "Mark Fortner&quot; <phidias51gmail.com&gt; wrote on 09/14/2007 01:22:29 PM:
>
> > I'm trying to create an SVG-based widget system using batik. &nbsp;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
&gt; root svg element (often with width=&quot;100%"; height=&quot;100%&quot;).
Re: JSVGCanvas#setOpaque method not working.
user name
2007-10-19 11:19:49
Thomas,
Sorry, I should have been more specific.&nbsp; GearWindow extends Window and contains a JSVGCanvas.

Do you have any suggestions about what kind of fill I should use?  Is there some other way of making the background transparent?

Mark

On 10/19/07, thomas.deweesekodak.com">thomas.deweesekodak.com < thomas.deweesekodak.com">thomas.deweesekodak.com > wrote:

"Hi Mark,

"Mark Fortner&quot; < phidias51gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">phidias51gmail.com> wrote on 10/04/2007 10:35:04 AM:

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

    Well I have no idea what a GearWindow is, so I can't say if it
might be part of the problem.

> I use a <g> tag as the top level tag with the following settings:
>  <g
>      inkscape:label="Layer 1"
>      inkscape:groupmode="layer"
>      id=&quot;main_window"
>      width="237"
&gt;      height="216" style=&quot;fill:#ffffff00">

   Your fill spec is a little suspicious, it looks like it
is trying to define a transparent white color, but that isn't
how you do that.  So if you are filling a rect with that default
fill then that is your problem...


> On 10/4/07, thomas.deweesekodak.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">thomas.deweesekodak.com < thomas.deweesekodak.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> thomas.deweesekodak.com> wrote:
>
> Hi Mark,
>
> "Mark Fortner&quot; < phidias51gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">phidias51gmail.com> wrote on 09/14/2007 01:22:29 PM:
>
> > I'm trying to create an SVG-based widget system using batik. &nbsp;I've
> > created a proof-of-concept app, but I'm having problems getting the
> > widget to display without a background color.  I9;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
&gt; root svg element (often with width=&quot;100%"; height=&quot;100%&quot;).

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )