Language:
Русский
English
{Getlnset.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the GetLineSetting procedure.}
uses Graph;
var
Gd, Gm: Integer;
OldStyle: LineSettingsType;
begin
Gd := Detect;
InitGraph(Gd, Gm, '');
if GraphResult <> grOk then
Halt(1);
Line(0, 0, 100, 0);
GetLineSettings(OldStyle);
SetLineStyle(DottedLn, 0, ThickWidth); { New style }
Line(0, 10, 100, 10);
with OldStyle do { Restore old line style }
SetLineStyle(LineStyle, Pattern, Thickness);
Line(0, 20, 100, 20);
Readln;
CloseGraph;
end.