Display Bitmap Data in a Graphic Element : Ellipse « Graphics « Flex






Display Bitmap Data in a Graphic Element

Display Bitmap Data in a Graphic Element
           
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark">
    <mx:Script>
        
            import mx.graphics.BitmapFillMode;
      
    </mx:Script>
    <s:Graphic>
        <s:Group>
            <s:layout>
                <s:HorizontalLayout />
            </s:layout>
            <s:BitmapImage id="img" width="450" height="400" source="@Embed('a.png')"/>
            <s:Ellipse id="imgEllipse" width="450" height="400">
                <s:fill>
                    <s:BitmapFill id="imgFill" fillMode="{BitmapFillMode.REPEAT}" source="@Embed('a.png')"/>
                </s:fill>
            </s:Ellipse>
        </s:Group>
    </s:Graphic> 
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Use solid color to fill an EllipseUse solid color to fill an Ellipse
2.Mask clip a shape in MXMLMask clip a shape in MXML