home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-386-Vol-2of3.iso
/
b
/
bgi256-3.zip
/
WRMODE.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1992-12-27
|
3KB
|
80 lines
{ WRMODE.PAS - write mode definitions }
{ Written by Michael Day as of 15 Dec 92 }
{Usage: SetWriteMode(Selection+Function); }
{Example: SetWriteMode(FloodFillMode+SeedFill); }
unit WRMODE;
interface
{graphics mode selections available}
const Mode200 = 0; {320x200x256}
Mode400 = 1; {640x400x256}
Mode480 = 2; {640x480x256}
Mode600 = 3; {800x600x256}
Mode768 = 4; {1024x768x256}
Mode1024 = 5; {2048x1024x256}
{SetWriteMode selection commands}
const LineMode = $00; {line drawing write style}
PixelMode = $20; {pixel drawing write style}
FillMode = $40; {fill write style}
FloodFillType = $60; {floodfill option selection}
TextMode = $80; {bitmapped text write style}
MiscCommand = $E0; {misc BGI driver commands}
{Write mode functions}
MoveWrite = 0; {foreground and background drawing}
XorWrite = 1;
OrWrite = 2;
AndWrite = 3;
NotMoveWrite = 4;
NotXorWrite = 5;
NotOrWrite = 6;
NotAndWrite = 7;
ForeMoveWrite = 8; {foreground only drawing}
ForeXorWrite = 9;
ForeOrWrite = 10;
ForeAndWrite = 11;
ForeNotMoveWrite = 12;
ForeNotXorWrite = 13;
ForeNotOrWrite = 14;
ForeNotAndWrite = 15;
BackMoveWrite = 16; {background only drawing}
BackXorWrite = 17;
BackOrWrite = 18;
BackAndWrite = 19;
BackNotMoveWrite = 20;
BackNotXorWrite = 21;
BackNotOrWrite = 22;
BackNotAndWrite = 23;
SetBackColor = 24; {set the background color for draw method}
GetWriteMode = 30; {return selected write mode on GetMaxMode call}
GetBackColor = 31; {return background color on GetMaxMode call}
{FloodFillType functions}
BorderFill = 0; {use border floodfill method - default}
SeedFill = 1; {use seed floodfill method}
AutoFill = 8; {auto-select simplex or complex fill - default}
ComplexFill = 9; {force complex floodfill always}
FillCompressOff = 10; {use standard floodfill stack - default}
FillCompressOn = 11; {use compressed floodfill stack}
FillDelayOff = 12; {fill area while searching - default}
FillDelayOn = 13; {delay fill to after search, not active in simplex}
FillTracerOff = 14; {no tracing of search path - default}
FillTracerOn = 15; {show search path as it is processed}
GetFloodFillOpt = 31; {ret FF option flags in next GetMaxMode call}
{Misc Command functions}
{These functions modify the return value of the next call to GetMaxMode}
SetPutImgBackColor = 24; {set new putimage background color}
GetCurrentMode = 25; {ret actual graph mode in use}
GetXYStackPeak = 26; {ret last peak val of fill XYstack}
GetXYStackFree = 27; {ret last val of free XYstack space}
GetPutImgWriteMode = 30; {ret last write mode used by PutImage}
GetPutImgBackColor = 31; {ret background color used by PutImage}
implementation
end.