[Overview][Constants][Types][Classes][Index] |
Clears the contents of a surface to black (or to a specified color).
Source position: line 0
procedure IPTCSurface.Clear; |
AColor: IPTCColor |
); |
AColor: IPTCColor; |
AArea: IPTCArea |
); |
AColor |
|
The clear color. |
AColor |
|
The clear color. |
AArea |
|
The clear area. |
Clears the entire contents of (or an area of it, specified by the AArea parameter) the surface to the color specified in the AColor parameter. If the AColor parameter is not specified, the surface is cleared to black in direct color and index zero in indexed color. If the surface pixels are direct color format then the AColor parameter must specify a direct color r, g, b, a value. Conversely if the surface pixels are indexed color then the AColor parameter must specify a color index value. The clear area is clipped to the surface clip area.
TPTCError - a TPTCError exception is raised on failure.