This program reads a PCX file and shows it on the screen.
The picture must be a 2 color CGA, 4 color CGA, or a 16 color EGA picture.
9k
{****************************************************************************}
{ }
{ SHOW_PCX -- (C) Copyright 1989 ZSoft, Corporation. }
{ }
{ SHOW_PCX is an example program written in Borland's Turbo Pascal(R) 5.0. }
{ SHOW_PCX doesn't use any of the graphics routines built into Turbo Pascal, }
{ since many programmers won't be using Pascal for their final program. }
{ }
{ This program reads a PC Paintbrush PCX file and shows it on the screen. }
{ The picture must be a 2 color CGA, 4 color CGA, or a 16 color EGA picture. }
{ The picture will be displayed until a key is pressed. }
{ }
{ This program can be run at the DOS prompt - 'SHOW_PCX SAMPLE.PCX'. }
{ }
{****************************************************************************}
{ }
{ Remember, some computers and video adapters are NOT 100% compatible, no }
{ matter what their marketing department may say. This shows up when your }
{ program runs on everyone's computer EXCEPT a particular clone. }
{ Unfortunately, there is not much you can do to correct it. }
{ }
{ For example, some early VGA cards do not support the BIOS calls to set up }
{ a VGA palette - so the PCX image may come up all black, or with the wrong }
{ colors. }
{ }
{ Also, if you use code that attempts to determine what kind of video card }
{ is attached to the computer it may lock-up... }
{ }
{****************************************************************************}