TAggColor
Description
TAggColor is a data structure used in TAgg2D API methods to define a color.
The same variable can be redefined by calling the "Construct(r, g, b, a)" constructor as many times as needed.
Structure
r, g, b, a: byte;
Example
procedure TForm1.FormResize(Sender: TObject); var c1: TAggColor; begin if VG.Attach(Image1.Picture.Bitmap) then begin // Clear background with transparent white c.Construct(255, 255, 255, 0); VG.ClearAll(c); // Set line color to opaque Red c.Construct($FF, $00, $00); VG.LineColor(c); end; end;


