My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
ExclusionRectPrimitive  
How to use the ExclusionRect primitive
Updated May 25, 2010 by fabien.b...@gmail.com

ExclusionRect

Draw a rectangle with rounded corners ("radius" property), Optionally, you can define a rounded rectangular hole.

The roundness of the inner rectangle is defined by "innerRadius" property.

Constraints of the inner rectangle are defined with "innerTop", "innerBottom, "innerLeft" and "innerRight" properties.

Sample
<uigfx:ExclusionRect id="excl" 
    radius="10" 
    innerRadius="30" 
    top="0" left="0" right="0" bottom="0" 
    innerTop="0" innerBottom="20" innerLeft="0" innerRight="20"> 
    
    <uigfx:fill> 
        <s:SolidColor color="#353535" />    
    </uigfx:fill> 
    
    <uigfx:filters> 
        <s:DropShadowFilter color="#000000" inner="false" distance="1" 
            blurX="4" blurY="4" 
            quality="3" alpha="0.8" /> 
    </uigfx:filters> 
    
</uigfx:ExclusionRect>  
Result


Sign in to add a comment
Powered by Google Project Hosting