TAgg2D.ClearClipBox(c)
TAgg2D.ClearClipBox(r,
g, b, a)
Description
Erases the area defined by clipping rectangle with provided color. If there is no clipping rectangle defined yet, whole surface of attached TBitmap is considered to be the clipping rectangle.
Parameters
c: TAggColor [*]
Erase color in one data structure (r, g, b, a).
r: byte
Red channel of Erase color [0..255].
g: byte
Green channel of Erase color [0..255].
b: byte
Blue channel of Erase color [0..255].
a: byte = 255 (Opaque)
Alpha transparency of Erase color [(transparent) 0..255 (opaque)]
Example
if VG.Attach(Image1.Picture.Bitmap) then begin VG.ClearAll (255, 255, 255); VG.ClipBox(50, 50, 140, 140); // Erasing clipping box to Fuchsia VG.ClearClipBox(255, 0, 255); end;


