ページへ戻る
印刷
Starling+Feathersで9スライスを使う
をテンプレートにして作成 ::
NJF Wiki
xpwiki
:Starling+Feathersで9スライスを使う をテンプレートにして作成
開始行:
特にモバイルなどでは、少しでも画像のメモリを削らないとい...
その使い方。
まずtextureを取得
var texture:Texture = assets.getTexture(YOUR_9_SLICE_TEX...
assetsはAssetManager。[[StarlingのAssetManagerを使う]]を...
つぎにScale9Texturesを作成する。
var rect:Rectangle = new Rectangle( 20, 20, 165, 165 );
var s9texture:Scale9Textures = new Scale9Textures( textu...
ここでrectは9スライスの中心部分を表す長方形。
最後にScale9Imageで表示。高さや幅を指定すると9スライスと...
var img9s:Scale9Image = new Scale9Image(s9texture);
img9s.width = 360;
img9s.height = 330;
addChild(img9s);
参考: http://feathersui.com/help/scale9-image.html
終了行:
特にモバイルなどでは、少しでも画像のメモリを削らないとい...
その使い方。
まずtextureを取得
var texture:Texture = assets.getTexture(YOUR_9_SLICE_TEX...
assetsはAssetManager。[[StarlingのAssetManagerを使う]]を...
つぎにScale9Texturesを作成する。
var rect:Rectangle = new Rectangle( 20, 20, 165, 165 );
var s9texture:Scale9Textures = new Scale9Textures( textu...
ここでrectは9スライスの中心部分を表す長方形。
最後にScale9Imageで表示。高さや幅を指定すると9スライスと...
var img9s:Scale9Image = new Scale9Image(s9texture);
img9s.width = 360;
img9s.height = 330;
addChild(img9s);
参考: http://feathersui.com/help/scale9-image.html
ページ名: