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

File: display/LStageScaleMode.js

/** @language english
 * A value from the LStageScaleMode class that specifies which scale mode to use. 
 * @class LStageScaleMode
 * @constructor
 * @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);
 * 	}
 * @examplelink <p><a href="../../../api/LStageScaleMode/index.html" target="_blank">Try it »</a></p>
 * @since 1.8.0
 * @public
 */
function LStageScaleMode () {throw "LStageScaleMode cannot be instantiated";}
/** @language english
 * [static] Specifies that the entire application be visible in the specified area without trying to preserve the original aspect ratio.
 * @property EXACT_FIT
 * @type String
 * @static
 * @since 1.8.0
 * @public
 */
LStageScaleMode.EXACT_FIT = "exactFit";
/** @language english
 * [static] Specifies that the entire application be visible in the specified area without distortion while maintaining the original aspect ratio of the application.
 * @property SHOW_ALL
 * @type String
 * @static
 * @since 1.8.0
 * @public
 */
LStageScaleMode.SHOW_ALL = "showAll";
/** @language english
 * [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.
 * @property NO_BORDER
 * @type String
 * @static
 * @since 1.8.0
 * @public
 */
LStageScaleMode.NO_BORDER = "noBorder";
/** @language english
 * [static] Specifies that the size of the application be fixed, so that it remains unchanged even as the size of the player window changes.
 * @property NO_SCALE
 * @type String
 * @static
 * @since 1.8.0
 * @public
 */
LStageScaleMode.NO_SCALE = "noScale";