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

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Graphics » EllipseScreenshots 
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
w___w___w.___j___a__v__a_2___s__.__c__om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.