Fill with image

閲覧: 34 回
最初の未読メッセージにスキップ

Riaan Havenga

未読、
2013/10/06 14:32:362013/10/06
To: lib-g...@googlegroups.com
Hi Guys,
 
I am a newby to lib-gwt-svg, so I am like a blank canvas before you ;-)
 
I am trying to fill a SVG shape with a bitmap image as background. Now with normal SVG you can define the image as part of a pattern as follows:
 
<svg width="700" height="660">
  <defs>
       <pattern id="image" x="0" y="0" patternUnits="userSpaceOnUse" height="1" width="1">
                  <image x="0" y="0" xlink:href="url.png"></image>
        </pattern>  
   <defs>  
 <circle id='top' cx="180" cy="120" r="80" fill="url(#image)"/>
</svg>
 
 
Now how would you do the same thing for this library:
 

OMSVGCircleElement circle = doc.createSVGCircleElement(posiX,posiY, 100);

circle.getStyle().setSVGProperty(SVGConstants.CSS_FILL_PROPERTY,??????);

 

 

Thanks

 

 
 
 
 
 

全員に返信
投稿者に返信
転送
新着メール 0 件