Layer.operateRect

Function/Meaning
Rectangular Operation Blending
Type
Method of Layer class
Syntax
operateRect(dleft, dtop, src, sleft, stop, swidth, sheight, mode=omAuto, opa=255)
Arguments
dleft Specifies the left position of the destination rectangle (in pixels, relative to the destination layer's image position).
dtop Specifies the top position of the destination rectangle (in pixels, relative to the destination layer's image position).
src Specifies the source layer object.
A Bitmap class object can also be specified. (Since 1.1.0)
sleft Specifies the left position of the source rectangle (in pixels, relative to the source layer's image position).
stop Specifies the top position of the source rectangle (in pixels, relative to the source layer's image position).
swidth Specifies the width of the source rectangle (in pixels, relative to the source layer's image position).
sheight Specifies the height of the source rectangle (in pixels, relative to the source layer's image position).
mode Specifies the operation mode.
If omAuto is specified, the operation type is automatically determined according to the Layer.type property of the source layer.
If omPsNormal is specified, Photoshop-compatible alpha blending is performed.
If omPsAdditive is specified, Photoshop-compatible Linear Dodge blending is performed.
If omPsSubtractive is specified, Photoshop-compatible Linear Burn blending is performed.
If omPsMultiplicative is specified, Photoshop-compatible Multiply blending is performed.
If omPsScreen is specified, Photoshop-compatible Screen blending is performed.
If omPsOverlay is specified, Photoshop-compatible Overlay blending is performed.
If omPsHardLight is specified, Photoshop-compatible Hard Light blending is performed.
If omPsSoftLight is specified, Photoshop-compatible Soft Light blending is performed.
If omPsColorDodge is specified, Photoshop-compatible Color Dodge blending is performed.
If omPsColorDodge5 is specified, Photoshop version 5.x or lower compatible Color Dodge blending is performed.
If omPsColorBurn is specified, Photoshop-compatible Color Burn blending is performed.
If omPsLighten is specified, Photoshop-compatible Lighten blending is performed.
If omPsDarken is specified, Photoshop-compatible Darken blending is performed.
If omPsDifference is specified, Photoshop-compatible Difference blending is performed.
If omPsDifference5 is specified, Photoshop version 5.x or lower compatible Difference blending is performed.
If omPsExclusion is specified, Photoshop-compatible Exclusion blending is performed.
If omAdditive is specified, Additive blending is performed.
If omSubtractive is specified, Subtractive blending is performed.
If omMultiplicative is specified, Multiplicative blending is performed.
If omDodge is specified, Dodge blending is performed.
If omDarken is specified, Darken blending is performed.
If omLighten is specified, Lighten blending is performed.
If omScreen is specified, Screen blending is performed.
If omAlpha is specified, Alpha blending is performed.
If omAddAlpha is specified, Additive alpha blending is performed.
If omOpaque is specified, the alpha information of src is ignored, and src is always treated as completely opaque.
opa Specifies the intensity of the operation (0 to 255).
Return Value
None (void)
Description
Performs a blending operation of the specified rectangular portion of the source layer onto the specified position of the current layer using the specified mode.
The Layer.face property values of both the destination layer (the one executing the method) and the source layer are ignored.
If omAuto is specified for mode, the operation type is automatically determined according to the Layer.type property of the source layer.