Язык:
Русский
English
{ Пример программы для функции GetPixel }
uses Graph;
var
Gd, Gm : Integer;
PixelColor : Word;
begin
Gd := Detect;
InitGraph(Gd, Gm, 'X:\BP');
if GraphResult <> grOk then
Halt(1);
PixelColor := GetPixel(10, 10);
if PixelColor = 0 then
PutPixel(10, 10, GetMaxColor);
ReadLn;
CloseGraph;
end.
var
Gd, Gm : Integer;
PixelColor : Word;
begin
Gd := Detect;
InitGraph(Gd, Gm, 'X:\BP');
if GraphResult <> grOk then
Halt(1);
PixelColor := GetPixel(10, 10);
if PixelColor = 0 then
PutPixel(10, 10, GetMaxColor);
ReadLn;
CloseGraph;
end.