<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" viewSourceURL="srcview/index.html">
<mx:Image id="image" source="YellowFlowers.png" verticalCenter="0" horizontalCenter="0">
<mx:filters>
<s:ShaderFilter shader="@Embed(source='ImageRotate.pbj')" origin_x="{originX.value}" origin_y="{originY.value}" rotation="{rotationD.value}"
bottomExtension="{extension.value}" topExtension="{extension.value}" leftExtension="{extension.value}" rightExtension="{extension.value}"/>
</mx:filters>
</mx:Image>
<s:VGroup x="10" y="10">
<mx:Label text="Rotation Degrees"/>
<s:HSlider id="rotationD" minimum="-180" maximum="180" stepSize="1" valueInterval="1" liveDragging="true"/>
<mx:Label text="Rotation Origin (x, y)"/>
<s:HSlider id="originX" minimum="0" maximum="{image.width}" stepSize="1" valueInterval="1" liveDragging="true"/>
<s:HSlider id="originY" minimum="0" maximum="{image.height}" stepSize="1" valueInterval="1" liveDragging="true"/>
<mx:Label text="Extension"/>
<s:HSlider id="extension" minimum="0" maximum="{image.width}" stepSize="1" valueInterval="1" liveDragging="true"/>
</s:VGroup>
</s:Application>