深入SVG路徑~~~在DEGRAFA中使用PATH
阿新 • • 發佈:2019-02-03
" layout="absolute"
backgroundGradientColors="[#333333, #222222]"
xmlns:degrafa="com.degrafa.*"
xmlns:paint="com.degrafa.paint.*"
xmlns:geometry="com.degrafa.geometry.*">
<degrafa:Surface verticalCenter="0" horizontalCenter="0">
<degrafa:fills>
<paint:BitmapFill id="bitmapFill" source="{svgTest}" smooth="true"/>
</degrafa:fills>
<degrafa:GeometryGroup scaleX="1" scaleY="1">
<geometry:Circle fill="{bitmapFill}" radius="450"/>
</degrafa:GeometryGroup>
</degrafa:Surface>
<mx:Script>
<![CDATA[
[Embed(source="circle.svg")]
[Bindable]
public var svgTest:Class;
]]>
</mx:Script>
</mx:Application>
backgroundGradientColors="[#333333, #222222]"
xmlns:degrafa="com.degrafa.*"
xmlns:paint="com.degrafa.paint.*"
xmlns:geometry="com.degrafa.geometry.*">
<degrafa:Surface verticalCenter="0" horizontalCenter="0">
<degrafa:fills>
<paint:BitmapFill id="bitmapFill" source="{svgTest}" smooth="true"/>
</degrafa:fills>
<degrafa:GeometryGroup scaleX="1" scaleY="1">
<geometry:Circle fill="{bitmapFill}" radius="450"/>
</degrafa:GeometryGroup>
</degrafa:Surface>
<mx:Script>
<![CDATA[
[Embed(source="circle.svg")]
[Bindable]
public var svgTest:Class;
]]>
</mx:Script>
</mx:Application>