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

LBlendMode Class

Available since 1.8.0

A class that provides constant values for visual blend mode effects.

Constructor

LBlendMode

() public

Defined in display/LBlendMode.js:1

Available since 1.8.0

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;

Item Index

Properties

Properties

COPY

String public static

Defined in display/LBlendMode.js:98

Available since 1.8.0

[static] Displays the source image. The destination image is ignored

DESTINATION_ATOP

String public static

Defined in display/LBlendMode.js:62

Available since 1.8.0

[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

DESTINATION_IN

String public static

Defined in display/LBlendMode.js:71

Available since 1.8.0

[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

DESTINATION_OUT

String public static

Defined in display/LBlendMode.js:80

Available since 1.8.0

[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

DESTINATION_OVER

String public static

Defined in display/LBlendMode.js:53

Available since 1.8.0

[static] Displays the destination image over the source image

LIGHTER

String public static

Defined in display/LBlendMode.js:89

Available since 1.8.0

[static] Displays the source image + the destination image

NONE

String public static

Defined in display/LBlendMode.js:116

Available since 1.8.0

[static] Do not use the blend mode

NORMAL

String public static

Defined in display/LBlendMode.js:125

Available since 1.8.0

[static] Equivalent to NONE.

SOURCE_ATOP

String public static

Defined in display/LBlendMode.js:26

Available since 1.8.0

[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

SOURCE_IN

String public static

Defined in display/LBlendMode.js:35

Available since 1.8.0

[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

SOURCE_OUT

String public static

Defined in display/LBlendMode.js:44

Available since 1.8.0

[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

SOURCE_OVER

String public static

Defined in display/LBlendMode.js:17

Available since 1.8.0

[static] Default. Displays the source image over the destination image

XOR

String public static

Defined in display/LBlendMode.js:107

Available since 1.8.0

[static] The source image is combined by using an exclusive OR with the destination image