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