<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 閱讀(645) 評論(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
    主站蜘蛛池模板: 国产亚洲精品a在线观看app| 亚洲色成人四虎在线观看| 91精品免费久久久久久久久| 亚洲天堂男人影院| 久久亚洲中文字幕精品一区| 99久久人妻精品免费二区| 亚洲色成人四虎在线观看| 亚洲欧洲日产国码无码久久99| 无人在线观看完整免费版视频| 牛牛在线精品观看免费正| 亚洲无成人网77777| 亚洲精品无码成人片在线观看 | 在线jyzzjyzz免费视频| 一区二区三区免费视频网站| 亚洲美女视频网站| 亚洲男人的天堂一区二区| 手机看黄av免费网址| 老妇激情毛片免费| 亚洲入口无毒网址你懂的| 丝袜熟女国偷自产中文字幕亚洲| 97热久久免费频精品99| 国产线视频精品免费观看视频| 亚洲综合av一区二区三区不卡| 亚洲AV无码国产丝袜在线观看 | 亚洲精品天天影视综合网| 国产精品免费视频一区| 亚洲日韩精品无码专区网站| 精品成人一区二区三区免费视频| 亚洲伊人tv综合网色| 亚洲免费视频一区二区三区| 最近的免费中文字幕视频| 97免费人妻在线视频| 国产综合免费精品久久久| 国产产在线精品亚洲AAVV| 一本天堂ⅴ无码亚洲道久久| 久久久无码精品亚洲日韩京东传媒 | 亚洲Aⅴ无码专区在线观看q| 亚洲成a人在线看天堂无码| 免费人成视频在线| 99久久久精品免费观看国产| 久久久久国产精品免费网站|