有没有人遇到这个? 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设置没有缩放,是否有任何我有的做错了吗?
谢谢!
乔尔
答案 0 :(得分:0)
现在我意识到Scale Grid有很多限制,但我从这里找到了解决方案:http://old.troygilbert.com/2009/08/quick-fix-for-scale-9-issues/