TAgg2D.LineColor(c)
TAgg2D.LineColor (r,
g, b, a)
Description
Changes the color used on stroke of objects being drawn.
p>Default line color is Black (r:0; g:0; b:0; a:255).
Line color doesn't apply if line gradient is in place.
Parameters
c: TAggColor [*]
Line color in one data structure (r, g, b, a).
r: byte
Red channel of Line color [0..255].
g: byte
Green channel of Line color [0..255].
b: byte
Blue channel of Line color [0..255].
a: byte = 255 (Opaque)
Alpha transparency of Line color [(transparent) 0..255 (opaque)].
Example
if VG.Attach(Image1.Picture.Bitmap) then begin VG.ClearAll(255, 255, 255); // Changing Line color to HTML color Medium Blue #0000CD VG.LineColor($00, $00, $CD); VG.Rectangle(30, 30, 180, 80); // Adding Alpha Transparency to previous Line color VG.Translate(0, 80); VG.LineColor($00, $00, $CD, 128); VG.Rectangle(30, 30, 180, 80); end;



