```xml operateAffine - Affine transformation arithmetic composition

Layer.operateAffine

Function/Meaning
Affine transformation arithmetic composition
Type
Layer class method
Syntax
operateAffine(src, sleft, stop, swidth, sheight, affine, A, B, C, D, E, F, mode=omAuto, opa=255, type=stNearest)
Arguments
src Specifies the source layer object.
Bitmap class objects can also be specified. (Since 1.1.0)
sleft Specifies the left edge position of the rectangle to be composited, in pixels (relative to the source layer's image position).
stop Specifies the top edge position of the rectangle to be composited, in pixels (relative to the source layer's image position).
swidth Specifies the width of the rectangle to be composited, in pixels (relative to the source layer's image position).
sheight Specifies the height of the rectangle to be composited, in pixels (relative to the source layer's image position).
affine Specifies how to handle the following six arguments (A to F parameters).
If true is specified, the six parameters are interpreted as follows:
A : a of the 2D affine transformation matrix
B : b of the 2D affine transformation matrix
C : c of the 2D affine transformation matrix
D : d of the 2D affine transformation matrix
E : tx of the 2D affine transformation matrix
F : ty of the 2D affine transformation matrix

Through affine transformation, the source image position (x, y) (where the top-left corner of the source rectangle is (0, 0)) is converted to the destination image position (x', y') by the following formula:
x' = a*x + c*y + tx
y' = b*x + d*y + ty

If false is specified, the six parameters are interpreted as follows:
A : X-coordinate (x0) in the destination image position of the top-left corner of the source rectangle
B : Y-coordinate (y0) in the destination image position of the top-left corner of the source rectangle
C : X-coordinate (x1) in the destination image position of the top-right corner of the source rectangle
D : Y-coordinate (y1) in the destination image position of the top-right corner of the source rectangle
E : X-coordinate (x2) in the destination image position of the bottom-left corner of the source rectangle
F : Y-coordinate (y2) in the destination image position of the bottom-left corner of the source rectangle

If false is specified, the destination position (x3, y3) corresponding to the bottom-right corner of the source is automatically calculated by the following formula:
x3 = x1 - x0 + x2
y3 = y1 - y0 + y2
A A parameter. Interpretation changes depending on the affine argument.
B B parameter. Interpretation changes depending on the affine argument.
C C parameter. Interpretation changes depending on the affine argument.
D D parameter. Interpretation changes depending on the affine argument.
E E parameter. Interpretation changes depending on the affine argument.
F F parameter. Interpretation changes depending on the affine argument.
mode Specifies the operation mode.
If omAuto is specified, the type of operation is automatically determined according to the Layer.type property of the source layer.
If omPsNormal is specified, Photoshop-compatible alpha blending is performed (not implemented in the current version).
If omPsAdditive is specified, Photoshop-compatible Linear Dodge blending is performed (not implemented in the current version).
If omPsSubtractive is specified, Photoshop-compatible Linear Burn blending is performed (not implemented in the current version).
If omPsMultiplicative is specified, Photoshop-compatible Multiply blending is performed (not implemented in the current version).
If omPsScreen is specified, Photoshop-compatible Screen blending is performed (not implemented in the current version).
If omPsOverlay is specified, Photoshop-compatible Overlay blending is performed (not implemented in the current version).
If omPsHardLight is specified, Photoshop-compatible Hard Light blending is performed (not implemented in the current version).
If omPsSoftLight is specified, Photoshop-compatible Soft Light blending is performed (not implemented in the current version).
If omPsColorDodge is specified, Photoshop-compatible Color Dodge blending is performed (not implemented in the current version).
If omPsColorDodge5 is specified, Photoshop version 5.x or lower compatible Color Dodge blending is performed (not implemented in the current version).
If omPsColorBurn is specified, Photoshop-compatible Color Burn blending is performed (not implemented in the current version).
If omPsLighten is specified, Photoshop-compatible Lighten blending is performed (not implemented in the current version).
If omPsDarken is specified, Photoshop-compatible Darken blending is performed