<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    gembin

    OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

    HBase, Hadoop, ZooKeeper, Cassandra

    Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

    There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

    About Me

     

    as3 9-slice scaling

    9-slice scaling

    The 9-slice scaling feature, introduced in Fireworks CS3, allows you to scale vector and bitmap symbols up or down without distorting their geometry. The symbol can be scaled using 3 or 9 regions, depending on the shape of the symbol.

    The following figure shows how images are scaled using the 9-slice scaling feature.

    The 9-slice scaling guides are enabled in the Symbol Editor and Button Editor for all symbols by default.

    To scale a symbol using 9-slice scaling:

    1. Double click the symbol or button to open the Symbol Editor or Button Editor.

    2. Edit the 9-slice scaling guides as follows:

    a. Enable or disable the guides by selecting or deselecting the Enable 9-slice scaling guides check box.

    b. Move the guides and place them appropriately on the button or symbol. Make sure that the parts of the symbol that you don’t want to be distorted when scaling (for example the corners) are outside the guides, as represented by the yellow areas in the graphic above.

    The 9-slice scaling guides are positioned on this button so that the corners will not be distorted when the button size is changed.
    c. (Optional) Lock the guides by checking the Lock 9-slice scaling guides check box to keep them from being moved accidentally.

    3. When you have finished placing the 9-slice scaling guides, click Done in the symbol or button editor.

    4. Resize the symbol as needed by using the scale tool.

    The button is scaled without distorting the shape of the corners.

    這里由一個比較好的學習demo: http://www.bytearray.org/?p=118
    </div>
    <div>import org.bytearray.display.ScaleBitmap;

    // Add Bitmap ,沒有使用9-scale
    var myBitmap:Bitmap=new Bitmap(new bitmapAsset(0,0));
    myBitmap.x=260;
    myBitmap.y=140;
    myBitmap.width=200;
    myBitmap.height=64;
    addChild(myBitmap);

    // Add ScaleBitmap,使用了9-scale
    var myScaleBitmap:ScaleBitmap=new ScaleBitmap(new bitmapAsset(0,0));
    myScaleBitmap.x=260;
    myScaleBitmap.y=280;
    myScaleBitmap.scale9Grid=new Rectangle(20,20,80,80);
    myScaleBitmap.setSize(200,64);
    addChild(myScaleBitmap);</div>
    <div>

    posted on 2010-06-14 22:10 gembin 閱讀(646) 評論(0)  編輯  收藏 所屬分類: ActionScript3

    導航

    統計

    常用鏈接

    留言簿(6)

    隨筆分類(440)

    隨筆檔案(378)

    文章檔案(6)

    新聞檔案(1)

    相冊

    收藏夾(9)

    Adobe

    Android

    AS3

    Blog-Links

    Build

    Design Pattern

    Eclipse

    Favorite Links

    Flickr

    Game Dev

    HBase

    Identity Management

    IT resources

    JEE

    Language

    OpenID

    OSGi

    SOA

    Version Control

    最新隨筆

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    free counters
    主站蜘蛛池模板: 91免费国产视频| 免费无码作爱视频| 免费一本色道久久一区| 久久亚洲AV成人无码| 久久aa毛片免费播放嗯啊| 国产亚洲精品精华液| fc2免费人成在线| 中文亚洲AV片不卡在线观看| 一级成人a做片免费| 在线亚洲精品福利网址导航| 国产福利免费视频| 婷婷亚洲综合五月天小说| 最近中文字幕大全免费版在线| 狠狠亚洲婷婷综合色香五月排名| 最好免费观看高清在线| 亚洲精品美女在线观看| 我要看免费的毛片| 美女被免费网站视频在线| 亚洲精品无码99在线观看 | 666精品国产精品亚洲| 国产91色综合久久免费| 亚洲熟妇无码AV| 久久久久久亚洲精品不卡| 在线成人精品国产区免费| 亚洲激情电影在线| 日本一道本高清免费| caoporn成人免费公开| 久热综合在线亚洲精品| 可以免费看黄的网站| 美女裸免费观看网站| 亚洲人成电影在在线观看网色| 免费a级毛片高清视频不卡| 免费很黄无遮挡的视频毛片| 亚洲国产香蕉碰碰人人| 成人五级毛片免费播放| 中文在线观看永久免费| 456亚洲人成在线播放网站| 国产成人亚洲精品影院| 69天堂人成无码麻豆免费视频| 日本在线观看免费高清| 亚洲无砖砖区免费|