Image倒影效果

     利用spark的BitmapImage实现倒影效果

 

  

<s:BitmapImage source="@Embed(source='images/sdp/112.png')" smooth="true"   
				   width="{image.width}" height="{image.height}" 
				   maskType="alpha" scaleY="-1" id="reflection2" 
				   filters="{[blur2]}">
		<s:mask>
			<s:Group>
				<s:Rect width="{image.width}" height="{image.height}">
					<s:fill>
						<s:LinearGradient rotation="-90">
							<s:GradientEntry color="white" alpha="1"/>
							<s:GradientEntry color="white" alpha="0" ratio=".4"/>
						</s:LinearGradient>
					</s:fill>
				</s:Rect>
			</s:Group>
		</s:mask>
	</s:BitmapImage>

 

你可能感兴趣的:(image)