TAgg2D.ClipBox(x1, y1, x2, y2)
Description
Restricts the rendering area to the given rectangle.
Parameters
x1: double
X coordinate of clipping rectangle Top Left corner [in pixels].
y1: double
Y coordinate of clipping rectangle Top Left corner [in pixels].
x2: double
X coordinate of clipping rectangle Bottom Right corner [in pixels].
y2: double
Y coordinate of clipping rectangle Bottom Right corner [in pixels].
Example
if VG.Attach(Image1.Picture.Bitmap) then begin VG.ClearAll (255, 255, 255); VG.LineWidth(10); VG.LineColor($32, $cd, $32); VG.FillColor($ff, $d7, $00); VG.ClipBox(50, 50, 140, 140); VG.Star(100, 100, 30, 70, 55, 5); end;



