API Docs for: 最后更新日期:2014年8月25日
Google搜索   
Show:

LStageScaleMode Class

Available since 1.8.0

A value from the LStageScaleMode class that specifies which scale mode to use.

Constructor

LStageScaleMode

() public

Defined in display/LStageScaleMode.js:1

Available since 1.8.0

Example:

LInit(50, "legend", 240, 240, main);
function main () {
    LGlobal.align = LStageAlign.BOTTOM_MIDDLE;
    LGlobal.stageScale = LStageScaleMode.SHOW_ALL;
    LSystem.screen(LStage.FULL_SCREEN);
    var loader = new LLoader();
    loader.addEventListener(LEvent.COMPLETE, loadBitmapdata); 
    loader.load("face.jpg", "bitmapData");
}
function loadBitmapdata (event) {
    var bitmapdata = new LBitmapData(event.currentTarget);  
    var bitmap = new LBitmap(bitmapdata);
    addChild(bitmap);
}

Item Index

Properties

Properties

EXACT_FIT

String public static

Defined in display/LStageScaleMode.js:25

Available since 1.8.0

[static] Specifies that the entire application be visible in the specified area without trying to preserve the original aspect ratio.

NO_BORDER

String public static

Defined in display/LStageScaleMode.js:43

Available since 1.8.0

[static] Specifies that the entire application fill the specified area, without distortion but possibly with some cropping, while maintaining the original aspect ratio of the application.

NO_SCALE

String public static

Defined in display/LStageScaleMode.js:52

Available since 1.8.0

[static] Specifies that the size of the application be fixed, so that it remains unchanged even as the size of the player window changes.

SHOW_ALL

String public static

Defined in display/LStageScaleMode.js:34

Available since 1.8.0

[static] Specifies that the entire application be visible in the specified area without distortion while maintaining the original aspect ratio of the application.