2013-08-23 25 views
0

有沒有人遇到過這個問題? FXG ScaleGrid似乎不適用於BitmapImage。下面是我的代碼: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> 

當我縮放時,矩形部分具有縮放沒有問題,但的BitmapImage根據scaleGrid組沒有形成規模,有什麼,我已經做了它錯了嗎?

謝謝!

喬爾

回答