有人遇到这种情况吗?FXG ScaleGrid 似乎不适用于 BitmapImage。以下是我的代码:
<Graphic version="2.0" xmlns="http://ns.adobe.com/fxg/2008" scaleGridTop="6" scaleGridLeft="6" scaleGridRight="94" scaleGridBottom="54" >
<Rect width="100" height="60" radiusX="4" radiusY="4" >
<fill>
<LinearGradient rotation="90" >
<GradientEntry color="#00649f" />
<GradientEntry color="#005080" />
</LinearGradient>
</fill>
<stroke>
<LinearGradientStroke rotation="90" >
<GradientEntry color="#0079c1" />
<GradientEntry color="#004b77" />
</LinearGradientStroke>
</stroke>
</Rect>
<!-- Use BitmapImage for InnerGlow, since ScaleGrid will not work on filter -->
<BitmapImage x="0" y="0" source="@Embed('skins/mobi/assets240/InnerGlow240.png')" scaleX="1" scaleY="1" fillMode="scale" width="100" height="60" />
</Graphic>
当我缩放它时,Rect部分缩放没有问题,但是BitmapImage没有按照scaleGrid设置缩放,是我做错了什么吗?
谢谢!
乔尔