AggPas - Anti-Grain Geomertry for Object Pascal

TAgg2D.NoFill

Description

This method turns off filling of interior of objects being drawn. It turns off both fill color and gradient fill. From now, all rendering will look like there is a hole in them.

Example

if VG.Attach(Image1.Picture.Bitmap) then begin

  VG.ClearAll(255, 255, 255);

  // Turn filling Off
  VG.NoFill;

  // HTML color Lime Green #32CD32
  VG.LineColor($32, $CD, $32);
  VG.Rectangle(10, 10, 140, 140);

  // HTML color Indian Red #CD5C5C
  VG.Translate(20, 20);
  VG.LineColor($CD, $5C, $5C);
  VG.Rectangle(10, 10, 140, 140);

  // HTML color Dark Orchid #9932CC
  VG.Translate(20, 20);
  VG.LineColor($99, $32, $CC);
  VG.Rectangle(10, 10, 140, 140);

end;

Screenshot: example