File: display/LBlendMode.js
/** @language english
* A class that provides constant values for visual blend mode effects.
* @class LBlendMode
* @constructor
* @example
* var imgLayer = new LSprite();
* var back = new LBitmap(new LBitmapData(dataList["back"]));
* imgLayer.addChild(back);
* var img = new LBitmap(new LBitmapData(dataList["img"]));
* imgLayer.addChild(img);
* img.blendMode = LBlendMode.LIGHTER;
* @examplelink <p><a href="../../../api/LBlendMode/index.html" target="_blank">Try it »</a></p>
* @since 1.8.0
* @public
*/
function LBlendMode () {throw "LBlendMode cannot be instantiated";}
/** @language english
* [static] Default. Displays the source image over the destination image
* @property SOURCE_OVER
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.SOURCE_OVER = "source-over";
/** @language english
* [static] Displays the source image on top of the destination image. The part of the source image that is outside the destination image is not shown
* @property SOURCE_ATOP
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.SOURCE_ATOP = "source-atop";
/** @language english
* [static] Displays the source image in to the destination image. Only the part of the source image that is INSIDE the destination image is shown, and the destination image is transparent
* @property SOURCE_IN
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.SOURCE_IN = "source-in";
/** @language english
* [static] Displays the source image out of the destination image. Only the part of the source image that is OUTSIDE the destination image is shown, and the destination image is transparent
* @property SOURCE_OUT
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.SOURCE_OUT = "source-out";
/** @language english
* [static] Displays the destination image over the source image
* @property DESTINATION_OVER
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.DESTINATION_OVER = "destination-over";
/** @language english
* [static] Displays the destination image on top of the source image. The part of the destination image that is outside the source image is not shown
* @property DESTINATION_ATOP
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.DESTINATION_ATOP = "destination-atop";
/** @language english
* [static] Displays the destination image in to the source image. Only the part of the destination image that is INSIDE the source image is shown, and the source image is transparent
* @property DESTINATION_IN
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.DESTINATION_IN = "destination-in";
/** @language english
* [static] Displays the destination image out of the source image. Only the part of the destination image that is OUTSIDE the source image is shown, and the source image is transparent
* @property DESTINATION_OUT
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.DESTINATION_OUT = "destination-out";
/** @language english
* [static] Displays the source image + the destination image
* @property LIGHTER
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.LIGHTER = "lighter";
/** @language english
* [static] Displays the source image. The destination image is ignored
* @property COPY
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.COPY = "copy";
/** @language english
* [static] The source image is combined by using an exclusive OR with the destination image
* @property XOR
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.XOR = "xor";
/** @language english
* [static] Do not use the blend mode
* @property NONE
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.NONE = null;
/** @language english
* [static] Equivalent to NONE.
* @property NORMAL
* @type String
* @static
* @since 1.8.0
* @public
*/
LBlendMode.NORMAL = null;