Is there a way within Flex to draw an <s:Ellipse> and use it to mask an image? Here is an <s:Ellipse> that I have written:
<s:Ellipse id="imageFrame" width="150" height="150" rotation="325" top="50" left="50">
<s:stroke>
<s:LinearGradientStroke weight="5">
<s:GradientEntry color="0x000000"/>
<s:GradientEntry color="0xFFFFFF"/>
<s:GradientEntry color="0x000000"/>
</s:LinearGradientStroke>
</s:stroke>
</s:Ellipse>
… that looks like this:

I would like to load an image using the <s:Image> component, place it inside of the ring, and mask the image so that only the hole in the center is displaying the image, much like a picture frame.
Can that be done, or is that not possible since the “hole” in the center of the ellipse is just invisible fill?
Thank you for your time.
One approach would be to mask an image by drawing a circle on the graphics of a
SpriteVisualElementdisplay object.