LBlendMode Class
A class that provides constant values for visual blend mode effects.
Constructor
LBlendMode
()
public
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
- COPY static
- DESTINATION_ATOP static
- DESTINATION_IN static
- DESTINATION_OUT static
- DESTINATION_OVER static
- LIGHTER static
- NONE static
- NORMAL static
- SOURCE_ATOP static
- SOURCE_IN static
- SOURCE_OUT static
- SOURCE_OVER static
- XOR static
Properties
COPY
String
public
static
[static] Displays the source image. The destination image is ignored
DESTINATION_ATOP
String
public
static
[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
[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
[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
[static] Displays the destination image over the source image
LIGHTER
String
public
static
[static] Displays the source image + the destination image
NONE
String
public
static
[static] Do not use the blend mode
NORMAL
String
public
static
[static] Equivalent to NONE.
SOURCE_ATOP
String
public
static
[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
[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
[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
[static] Default. Displays the source image over the destination image
XOR
String
public
static
[static] The source image is combined by using an exclusive OR with the destination image