xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dao <dao.ho...@gmail.com>
Subject Re: My canvas does not display some changes
Date Fri, 15 Jan 2010 13:13:22 GMT
Sorry about the confusion. It is not a mask in SVG terms. The mask for me is
just a business term.

Technically, it is just an element, like an other which is in a <g> appended
before the first rendering. It is appended directly to the SVG root element

On Fri, Jan 15, 2010 at 2:07 PM, <thomas.deweese@kodak.com> wrote:

> Hi Hodac,
>
> dao <dao.hodac@gmail.com> wrote on 01/15/2010 07:44:30 AM:
>
>
> > do you think I have to wait the rendering complete to add the mask ref?
>
>    From your description you are adding the mask before the first
> rendering which should be ok.
>
> > what do you mean by "twiddle"? make some modifications (updating an
> > unused parameter)?
>
>    No, you need to reset the 'mask' attribute on the element that
> references the mask element (I think just setting it to the current
> value will work).
>
> > On Fri, Jan 15, 2010 at 1:01 PM, <thomas.deweese@kodak.com> wrote:
> > Hi hodac,,
> >
> > dao <dao.hodac@gmail.com> wrote on 01/15/2010 06:13:34 AM:
> >
> >
> > > I am going crazy, I suppose because I don't get something basic in
> > > the batik architecture:
> >
> > [...]
> >
> > > I can see that only the user's elements are modified. The mask
> > > elements are not updated. I decide to dump the SVG from the canvas
> > > during the execution (after the rendering) (getSVGDocument()).I open
> > > it in squiggle, and oh! the mask elements are displayed OK!!!
>
> >    It is an architectural flaw in Batik, we don't track changes
> > automatically in a few cases, this is one of them.  You need to
> > 'twiddle' the mask reference and Batik will rebuild the mask.
> >
> > > So what's wrong with my program? what are the reason why the
> > > rendered canvas is not in accordance with the current canvas?
>
> >    Tracking changes in this case is non-trivial.
>
> >
> >
> >
> > --
> > Dao Hodac
>



-- 
Dao Hodac

Mime
View raw message