Enlargement / reduction copy
dleft | Specifies the left edge position of the destination rectangle in pixels (at the image position of the destination layer). |
dtop | Specifies the top position of the destination rectangle in pixels (at the image position of the destination layer). |
dwidth | Specifies the width of the destination rectangle in pixels (at the image position of the destination layer). |
dheight | Specifies the height of the destination rectangle in pixels (at the image position of the destination layer). |
src | Specifies the layer object to copy from. |
sleft | Specifies the left edge position of the rectangle to copy, in pixels (at the image position of the source layer). |
stop | Specifies the top position of the rectangle to copy, in pixels (at the image position of the source layer). |
swidth | Specifies the width of the rectangle to copy, in pixels (at the image position of the source layer). |
sheight | Specifies the height of the rectangle to copy, in pixels (at the image position of the source layer). |
type | Specifies the scale type.
The speed is faster in the order of stNearest> stFastLinear> stLinear> stCubic, but the faster the speed, the lower the image quality. |
option | Sharpness during 3D interpolation. |
Copies the rectangle of the specified source layer to the rectangle of the destination (layer that executes the method).
If the copy source rectangle and the copy destination rectangle are different in size, they will be enlarged or reduced.
In the current version, linear interpolation is effective when stFastLinear is specified when the Layer.face property of the layer to be overlaid (which executes the method) is dfAlpha (or dfBoth) or dfAddAlpha.
Linear interpolation is also possible when the Layer.face property is dfOpaque and the Layer.holdAlpha property is false.
Also, in the current version, the specification of stLinear or stCubic is valid only when the destination rectangle does not extend beyond the layer without horizontal / vertical inversion.
If the Layer.face property of the layer to which you want to overlay (execute the method) is dfAlpha (or dfBoth) or dfAddAlpha, both the main image and the mask image are copied.
For dfOpaque (or dfMain), only the main image is copied when the Layer.holdAlpha property is true, and both the main image and the mask image are copied when false.