src | Specify the copy source layer object. Bitmap class objects can also be specified. (1.1.0 or later) |
sleft | Specifies the left edge of the rectangle to be copied in pixels (at the image position of the source layer). |
stop | Specifies the top edge of the rectangle to be copied in pixels (at the image position of the source layer). |
swidth | Specifies the width of the rectangle to be copied in pixels (at the image position of the source layer). |
sheight | Specifies the height of the rectangle to be copied in pixels (at the image position of the source layer). |
affine | Specify how to handle the following six arguments (A to F parameters). If you specify true, each of the six parameters is 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 By the affine transformation, the image position (x, y) of the copy source (where the upper left corner of the copy source rectangle is (0, 0)) is calculated by the following equation using the image position (x', y') of the copy destination. x' = a*x + c*y + tx y' = b*x + d*y + ty If false is specified, each of the six parameters is interpreted as follows: These parameters also accept real numbers. A : X coordinate position (x0) of the upper left corner of the source rectangle in the image position at the destination B : Y coordinate position (y0) of the upper left corner of the source rectangle in the image position at the destination C : X coordinate position (x1) of the upper right corner of the source rectangle in the image position at the destination D : Y coordinate position (y1) of the upper right corner of the source rectangle in the image position at the destination E : X coordinate position (x2) of the lower left corner of the source rectangle in the image position at the destination F : Y coordinate position (y2) of the lower left corner of the source rectangle in the image position at the destination If false is specified, the copy destination position (x3, y3) corresponding to the lower right corner of the copy 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 | The E parameter. The interpretation depends on the affine argument. |
F | The F parameter. The interpretation depends on the affine argument. |
type | Specifies the type of affine transformation. stNearest : Nearest neighbor 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) For stFastLinear, stLinear, and stCubic, stRefNoClip can be additionally specified by bitwise OR, and in this case, it is allowed to refer to outside the area of the bitmap to be copied and combine colors. If this is not specified, there will be no reference outside the range of the source bitmap, even if there is room around the source bitmap. Is considered a color). |
clear | Specifies whether to clear around the affine-transformed image of the destination layer with the color and transparency indicated by the Layer.neutralColor property. If you specify true, it will be cleared. If you omit this argument or pass false, it will not be cleared. The area to be cleared can be limited by the Layer.setClip method. When this clear function is used, when the transfer destination layer is cleared and the image is overwritten and transferred by affine transformation, the area to be overwritten (the part overwritten by affine transformation in the cleared place) is wasted. Can be omitted. |