xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thierry Kormann <Thierry.Korm...@sophia.inria.fr>
Subject Image
Date Thu, 26 Oct 2000 16:51:03 GMT
Argggghhh...

So, Several points I would like to summarize :

1/ The bind method is only for dynamic stuffs.
The line in the SVGShapeElementBridge was used by the part of christophe 
(animation) so we really need to keep that line

2/ The things we changed in the bridge :

When a GraphicsNodeBridge want to set a mask to a GraphicsNode

a) deleguates to the CSSUtilities.convertMask method
b) This method then uses its parameters to :
  - ask the context, the MaskBridge
  - ask the MaskBridge to create the Mask GVT object
c) The MaskBridge (aka SVGMaskElementBridge),
  - find the element associated to the id of the mask attribute
  - get the GVT Builder from the context
  - ask the GVT Builder to construct a GVT tree with the children
    element of the mask element.
  - do the stuff you have written : create the mask
    according to the FilterRegion...

Hope it helps.

>    I suspect that my perceived masking problem relates to the fact
> that the newly built masking GVT tree doesn't pick up the full tree's
> scaling/translation information.  I guess I'm not sure if it should or
> not.

I think so. We need to fix that.

---

PS : a mask in SVG is defined using the <mask> element (see 
samples/tests/mask.svg) for more. That's why I have integrated your code but I 
was not able to see the logoSVGImg.svg example (except with your code and I 
don't know why ?).


Next time, could you please just send me the files you changed. 
It's gonna be easier for me.

Another thing is that I am not able to display that document correctly (a grey 
line appears after a transform).

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
"http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">

<svg  width="493" height="400" xml:space="preserve" viewBox="0 0 493 400">

 <image xlink:href="9.gif" x="0" y="0" width="100" height="100"/>
 <image xlink:href="9.gif" x="110" y="0" width="20" height="40"/>

<g transform="rotate(45) translate(100 0)">
 <image xlink:href="9.gif" x="0" y="0" width="100" height="100"/>
 <image xlink:href="9.gif" x="110" y="0" width="20" height="40"/>
</g>

</svg>


Any comments ?

Thierry.







-- 
Thierry Kormann
email: Thierry.Kormann@sophia.inria.fr  http://www.inria.fr/koala/tkormann/
Koala/Dyade/Bull @ INRIA - Sophia Antipolis






Mime
View raw message