Layer.copyRect

機能/意味
Rectangle copy
タイプ
Layerクラスのメソッド
構文
copyRect(dleft, dtop, src, sleft, stop, swidth, sheight)
引数
dleft  Specifies the left edge of the destination rectangle in pixels (at the image location of the destination layer).
dtop  Specifies the top edge of the destination rectangle in pixels (at the image location of the destination layer).
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).
戻り値
なし (void)
説明
 Copies the rectangular portion of the specified copy source layer to the specified position on your layer.
 The image to be copied depends on the value of the Layer.face property of the destination layer (the layer that executes the method).
dfAlpha (or dfBoth) : The main image and mask image are copied
dfAddAlpha : The main image and mask image are copied
dfOpaque (or dfMain) : If the Layer.holdAlpha property is true, only the main image is copied (the mask image is not copied). If false, the main image and mask image will be copied
dfMask : Only the mask image is copied (the main image is not copied)
dfProvince : Only the area image is copied (the mask image and main image are not copied)
 The Layer.face property of the source layer is ignored.
 This method is not affected by Layer.holdAlpha (in the case of dfAlpha or dfAddAlpha, the mask image is copied regardless of holdAlpha)