home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l043 / 3.ddi / GETFILLS.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1987-11-02  |  483 b   |  22 lines

  1. uses
  2.   Graph;
  3. var
  4.   Gd, Gm   : integer;
  5.   FillInfo : FillSettingsType;
  6.  
  7. begin
  8.   Gd := Detect;
  9.   InitGraph(Gd, Gm, '');
  10.   if GraphResult <> grOk then
  11.     Halt(1);
  12.   GetFillSettings(FillInfo);   { save fill style and color }
  13.   Bar(0, 0, 50, 50);
  14.   SetFillStyle(XHatchFill, GetMaxColor);       { new style }
  15.   Bar(50, 0, 100, 50);
  16.   with FillInfo do
  17.     SetFillStyle(Pattern, Color); { restore old fill style }
  18.   Bar(100, 0, 150, 50);
  19.   Readln;
  20.   CloseGraph;
  21. end.
  22.