left | Specifies the left edge of the rectangle to be filled, in pixels (at the image location). |
top | Specifies the top edge of the rectangle to be filled, in pixels (at the image location). |
width | Specifies the width of the filled rectangle in pixels (at the image position). |
height | Specifies the height of the filled rectangle in pixels (at the image position). |
value | Specify the fill color and value. The meaning of this value depends on the value of the Layer.face property. dfAlpha (or dfBoth) : Specify color in 0xRRGGBB format dfAddAlpha : Specify color in 0xRRGGBB format dfOpaque (or dfMain) : Specify color in 0xRRGGBB format dfMask : Specify the value of mask (opacity) (0 to 255) dfProvince : Please specify a value for the area (0-255) If dfOpaque is specified, the mask information is ignored (whether the mask information is retained or destroyed depends on the Layer.holdAlpha property). If dfMask is specified, the color information will remain as it is. This argument is ignored for dfAlpha and if opa is negative. |
opa | Specifies the opacity to fill (-255 to 0 to 255). This argument is ignored if the value of the Layer.face property is dfMask or dfProvince (always completely opaque). Specifying a negative number is valid only when Layer.face is dfAlpha, in which case the value argument is ignored and opacity is removed from the image (specifying -255 makes the rectangle completely transparent). |