Layer.setClip

機能/意味
Setting the drawing clip rectangle
タイプ
Layerクラスのメソッド
構文
setClip(left, top, width=void, height=void)
引数
left  Specifies the left edge of the drawing clip rectangle (in layer image coordinates) in pixels.
 This value can also be obtained and set using the Layer.clipLeft property.
top  Specifies the top edge of the drawing clip rectangle (in layer image coordinates) in pixels.
 This value can also be obtained and set using the Layer.clipTop property.
width  Specifies the width of the drawing clip rectangle in pixels.
 This value can also be obtained and set using the Layer.clipWidth property.
height  Specifies the height of the drawing clip rectangle in pixels.
 This value can also be obtained and set using the Layer.clipHeight property.
戻り値
なし (void)
説明
 Sets the drawing clip rectangle for the layer.
 Drawing on the layer is limited to the drawing clip rectangle (the part outside the rectangle is not drawn). However, some methods, such as Layer.flipLR and Layer.flipUD, are not affected by the drawing clip rectangle.
 By default, the clip rectangle is set to the entire layer image area (it can be drawn on the entire layer).
 The drawing clip rectangle returns to the initial value when the image is read, the image size is changed, or the display type of the layer is changed.
 Call this method with no arguments to reset the drawing clip rectangle to its initial value.