Manuel Cañón López schrieb:

>El mar, 19-07-2005 a las 14:05 +0200, Holger Will escribió:
>  
>
>>Manuel Cañón López schrieb:
>>
>>    
>>
>>>Hi, at the moment I'm doing some trials with the filter feGaussianBlur,
>>>applied to a rectangle. It works fine but I have one problem: i want the
>>>"shadow effect" (the one got with the gauss filter) with rounded corner.
>>>And it seems that the rx and ry attributes of the rectangle don't
>>>work...
>>>
>>>Has anyone a hint?
>>>
>>>thanks!
>>>
>>>      
>>>
>>Hi Manuel
>>rounded corners shouldnt be a problem.
>>if you post your code here, i may be able to help.
>>
>>cheers
>>Holger
>>
>>    
>>
>
>Hi Holger, tranks for answering, the code is something like:
>
>      <defs>
>            <filter id="gaussFilter">
>                  <feGaussianBlur stdDeviation="10.0"/>
>                  <feOffset dx="10.0" dy="5.0"/>
>            </filter>
>      </defs>
>      <rect 
>            rx="115" ry="115" width="107.5" x="333.3333333333333"
>y="300.0"
>           class="gauss" filter="url(#gaussFilter)" height="23.0">
>            <set attributeName="fill" attributeType="CSS"
>                  begin="element1.click" to="red"/>
>      </rect>
>      <rect height="20.0" rx="5" ry="5" stroke="black" width="112.5"
>            x="333.3333333333333" y="300.0">
>            <set attributeName="fill" attributeType="CSS"
>                  begin="element1.click" to="red"/>
>      </rect>
>
>I create two rectangles: one with the information (the second one) and
>another (the one that should be a kind of shadow), the first one.
>The second rectangle, the one with no filter goes fine: the corners are
>rounded, but the first one has normal corners.
>
>Thanks for the sugerences!
>
>  
>
Manuel,
what you are seeing here, is that the filter output gets cliped. you can 
enlarge the clipping region by specifieing x/y/width/height on the 
filter element.
            <filter id="gaussFilter" x="-0.2" y="-1" width="1.4" height="3">
                  <feGaussianBlur stdDeviation="10.0"/>
                  <feOffset dx="10.0" dy="5.0"/>
            </filter>
hth
Holger



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to