<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 閱讀(654) 評論(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
    主站蜘蛛池模板: 亚洲av专区无码观看精品天堂| 国产网站免费观看| 亚洲精品成人无限看| 一级毛片试看60分钟免费播放| 精品国产麻豆免费网站| 亚洲中文无码卡通动漫野外| 在线看片免费不卡人成视频| 亚洲欧洲精品一区二区三区| 亚洲成人在线免费观看| 亚洲最大在线观看| 日韩视频在线精品视频免费观看| 亚洲成人福利网站| 夫妻免费无码V看片| 亚洲a∨无码精品色午夜| 国产精品久免费的黄网站| 黄色片网站在线免费观看| 亚洲国产成人久久综合一区77 | 亚洲精品美女久久久久99小说| 国产亚洲视频在线观看网址| 亚洲成人高清在线| 中文字幕永久免费| 337p日本欧洲亚洲大胆色噜噜| 最近中文字幕大全中文字幕免费| 亚洲国产中文在线视频| 成人毛片18女人毛片免费| 美美女高清毛片视频黄的一免费| 国产亚洲一区二区三区在线不卡| 中文字幕手机在线免费看电影| 亚洲精品国产精品乱码视色 | 亚洲a视频在线观看| 日本一区二区三区日本免费| 日亚毛片免费乱码不卡一区| 一级一级一片免费高清| 久久综合日韩亚洲精品色| 337P日本欧洲亚洲大胆艺术图| 亚洲第一黄片大全| 久久99热精品免费观看动漫| 中文字幕乱码亚洲无线三区| 2048亚洲精品国产| 69pao强力打造免费高清| 亚洲AV无码AV吞精久久|