src |
Specifies the layer object to overlay.
You can also specify an object of the Bitmap class.
|
sleft |
Specifies the left edge position of the overlay rectangle in pixels (at the image position of the overlay source layer).
|
stop |
Specifies the top position of the overlay rectangle in pixels (at the image position of the overlay source layer).
|
swidth |
Specifies the width of the overlay rectangle in pixels (at the image position of the overlay source layer).
|
sheight |
Specifies the vertical width of the overlay rectangle in pixels (at the image position of the overlay source layer).
|
affine |
Specifies how to handle the following 6 arguments (A to F parameters).
If true is specified, each of the six parameters will be interpreted as follows.
- A : 2D affine transformation matrix a
- B : 2D affine transformation matrix b
- C : 2D affine transformation matrix c
- D : D of 2D affine transformation matrix
- E : 2D affine transformation matrix tx
- F : 2D affine transformation matrix ty
By affine transformation, the image position (x, y) of the overlay source (however, the upper left corner of the overlay source rectangle is (0, 0)) is the image position (x', y) of the overlay destination by the following formula. Converted to y').
x'= a * x + c * y + tx
y'= b * x + d * y + ty
If false is specified, each of the six parameters will be interpreted as follows.
- A : X coordinate position (x0) of the point in the upper left corner of the copy source rectangle at the image position at the copy destination
- B : Y coordinate position (y0) of the point in the upper left corner of the copy source rectangle at the image position at the copy destination
- C : X coordinate position (x1) of the point in the upper right corner of the copy source rectangle at the image position at the copy destination
- D : Y coordinate position (y1) of the point in the upper right corner of the copy source rectangle at the image position at the copy destination
- E : X coordinate position (x2) of the point in the lower left corner of the copy source rectangle at the image position at the copy destination
- F : Y coordinate position (y2) of the point in the lower left corner of the copy source rectangle at the image position at the copy destination
If false is specified, the overlay destination position (x3, y3) corresponding to the lower right corner of the overlay source is automatically calculated by the following formula.
x3 = x1-x0 + x2
y3 = y1 --y0 + y2
|
A |
A parameter.
The interpretation depends on the affine argument.
|
B |
B parameter.
The interpretation depends on the affine argument.
|
C |
C parameter.
The interpretation depends on the affine argument.
|
D |
D parameter.
The interpretation depends on the affine argument.
|
E |
E parameter.
The interpretation depends on the affine argument.
|
F |
F parameter.
The interpretation depends on the affine argument.
|
mode |
Specifies the operation mode.
- If omAuto is specified, the operation type is automatically determined according to the Layer.type property of the operation source layer.
- If omPsNormal is specified, Photoshop compatible alpha compositing will be performed (not implemented in the current version).
- If omPsAdditive is specified, Photoshop compatible dodging (linear) compositing is done (not implemented in the current version).
- If omPsSubtractive is specified, Photoshop compatible burn (linear) compositing is performed (not implemented in the current version).
- If omPsMultiplicative is specified, Photoshop compatible multiplication and composition will be performed (not implemented in the current version).
- If omPsScreen is specified, Photoshop compatible screen composition will be performed (not implemented in the current version).
- If omPsOverlay is specified, Photoshop compatible overlay composition will be performed (not implemented in the current version).
- If omPsHardLight is specified, Photoshop compatible hard light composition will be performed (not implemented in the current version).
- If omPsSoftLight is specified, Photoshop compatible softlight composition will be performed (not implemented in the current version).
- If omPsColorDodge is specified, Photoshop compatible dodging color composition will be performed (not implemented in the current version).
- If omPsColorDodge5 is specified, dodge color composition compatible with Photoshop version 5.x and below will be performed (not implemented in the current version).
- If omPsColorBurn is specified, Photoshop compatible burn-in color composition is performed (not implemented in the current version).
- If omPsLighten is specified, Photoshop compatible comparison (bright) composition will be performed (not implemented in the current version).
- If omPsDarken is specified, Photoshop compatible comparison (dark) compositing will be performed (not implemented in the current version).
- If omPsDifference is specified, Photoshop compatible absolute difference composition is performed (not implemented in the current version).
- If omPsDifference5 is specified, absolute value composition of the difference compatible with Photoshop version 5.x or lower will be performed (not implemented in the current version).
- If omPsExclusion is specified, Photoshop compatible exclusion composition is performed (not implemented in the current version).
- If omAdditive is specified, additive synthesis will be performed (not implemented in the current version).
- If omSubtractive is specified, subtractive synthesis will be performed (not implemented in the current version).
- If omMultiplicative is specified, multiplication synthesis will be performed (not implemented in the current version).
- If omDodge is specified, dodging synthesis will be performed (not implemented in the current version).
- If omDarken is specified, comparison (dark) compositing will be done (not implemented in the current version).
- If omLighten is specified, comparison (bright) composition will be performed (not implemented in the current version).
- If omScreen is specified, screen multiplication composition will be performed (not implemented in the current version).
- If omAlpha is specified, alpha synthesis will occur.
- If omAddAlpha is specified, additive alpha composition is done. In this case, when the destination Layer.face property is dfOpaque and the Layer.holdAlpha property is false, linear interpolation is possible by specifying stFastLinear in the type argument.
- If omOpaque is specified, the alpha information in src is ignored and src is always considered completely opaque. In this case, when the destination Layer.face property is dfOpaque and the Layer.holdAlpha property is false, linear interpolation is possible by specifying stFastLinear in the type argument.
|
opa |
Specifies the overlay opacity (0 to 255).
|
type |
Specifies the type of affine transformation.
- stNearest : Nearest point method is used
- stFastLinear : Low precision linear interpolation is used (partially implemented)
- stLinear : Linear interpolation is used (not implemented)
- stCubic : 3D interpolation is used (not implemented)
The speed is faster in the order of stNearest> stFastLinear> stLinear> stCubic, but the faster the speed, the lower the image quality.
For stFastLinear, stLinear, and stCubic, stRefNoClip can be additionally specified by bitwise OR, in which case it is allowed to refer to the outside of the area of the bitmap to be copied and synthesize the color.
If this is not specified, the out-of-range color will not refer to the closest pixel in the range, even if there is room around the source bitmap. It is considered a color).
|