home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_PAS
/
TPPCX256.ZIP
/
PCV_READ.ME
< prev
next >
Wrap
Text File
|
1993-12-21
|
10KB
|
186 lines
(I know you hate to (I do to), but PLEASE ... read. This file contains a
couple of important things to successfully evaluate the enclosed code.)
TPPCX-VGA256 v1.0
All material Copyright (C) 1993; Mark D.Rafn, MDRUtils
All rights reserved
All objects and code compiled under Borland Pascal v7.0
PCX image file format by ZSoft Corporation
------------------------------------------------------------------------------
GENERAL
------------------------------------------------------------------------------
■ TPPCX-VGA256 contains objects designed for Borland Pascal v7.0 OOP programmers
allowing for the display and creation of ZSoft's PCX format images in high
resolution and 256 glorious colors! Up to 1024 x 768 x 256 display mode is
supported in this version. Although specifically created for 256 color PCX
files, the code also works with 16 color images. The code runs under all
display modes, from 320x200 to 1024x768, 16 color to 256 color.
■ This version is retricted to VGA only. Additionally, in order to display
high resolution (up to 1024x768), your system must support VESA extensions.
VESA (Video Electronics Standards Association) is attempting to standardize
the Super VGA's. Many of the standards now exist and card manufacturers are
providing the BIOS extensions and drivers for their cards. If your card is
VESA compatible then loading the VESA BIOS extensions will enable you to
fully utilize the code in this utility. ( Support VESA! )
■ To better enable you to evaluated the code within, a VESA 256 BGI driver and
VGA 256 BGI driver are enclosed. Although pictures can be displayed without
either driver, without them you would not have graph functions to create
lines, text, rectangles, etc. The VESA256.BGI driver is included with
permission from Jones Computer Supplies; Peter F. Jones. Please read the
JCS_READ.ME file (included) for more info and registration. Please note
that this VESA driver is his crippled version. The VGA256.BGI driver was
obtained from Borland's CompuServ BPROGA forum and allows graphic functions
in hex mode 13 only (320x200x256).
■ Features
. Decode/view and encode/create PCX format images in 16 color mode.
. Decode/view and encode/create PCX format images in 256 color mode.
. Display image to user defined coordinates.
. Clip the image to a user defined window.
. Supports all standard Vga display modes including 256 color, mode 13h.
. Supports all VESA 256 color display modes up to 1024 x 768.
. Supports VESA 16 color modes.
. Includes Vga palette manipulation procedures.
. Includes VESA initialization procedures and controls.
. and more!
■ Files contained in this archive
UPCXVGA.TPU compiled unit for PCX decoding, encoding. (crippled)
UVESA.TPU compiled unit for VESA functions
UVGA.TPU compiled unit for VGA functions
UPAL256.TPU compiled unit for palette constants
UEGA.TPU compiled unit for EGA functions
PCXPLAY.PAS sample run program for PCX viewing (creating).
PALPLAY.PAS sample run program for VGA palette methods.
VESA256.BGI crippled VESA BGI driver for graph routines
VGA256.BGI VGA BGI driver for mode $13 graph routines
JCS_READ.ME VESA256.BGI info and registration information
PCV_READ.ME this file.
THECOVER.PCX Sample PCX file, 256 gray scale (the manual's cover)
COLOR16.PCX Sample PCX file, 16 colors
COLOR256.PCX Sample PCX file, 256 color
SHAREWRE.TXT Shareware information
------------
15 files
------------------------------------------------------------------------------
REGISTRATION
------------------------------------------------------------------------------
■ Please read SHAREWRE.TXT
■ As the author of these programs/units, I have spent CONSIDERABLE time in
their development. In the spirit of shareware, am I requesting a modest
registration fee for the use of the enclosed material. Because this material
must be registered, the files within this archive are for evaluation
purposes only and as such, they are crippled with respect to limited calls
for compiled code and limited documentation. Documentation is limited to
sample program comments only.
■ There are two types of registration:
1. The first type provides you with fully functional compiled code ONLY,
plus sample run programs. This code can be used as is or modified through
extensions for use in your programs. The cost of this registration is
$10.00 ( This includes S&H, overseas please add $1.00)
2. The second type of registration contains the above plus all the source
code used in the compiled programs/units. The cost for this registration is
$20.00. ( This includes S&H, overseas please add $1.00)
When registered . . .
In continuing to provide a quality product, I will be providing a compact,
professionally published, 44-page reference manual to both types of
registered users. This is something new for me and if successful, I will
continue to provide this service. Registration will also entitle you to
update notification when and if they occur as well as telephone support
( I would be glad to hear from you ).I have thoroughly tested these
programs/units before releasing and you should find them bug free,
however . . .
Upon writing the documentation for the objects contained in TPPCX-VGA256
I am continuing to use the format Borland has established in their Turbo
Vision manual. I have copied this style of documentation in past code I've
distributed and will continue with this method as I believe it to be clear
and concise. <I sincerely hope Borland is not offended>.
■ Also, ( I have to say this, argg! ) as with all shareware or freeware, the
programs are for use as is. You may use them, distribute them, etc. but the
author is not responsible for any problems incurred from their use, in part
or in whole. If you distribute them please leave the contents as received.
■ All the enclosed compiled code was written and compiled using Borland's
Turbo Pascal 6.0 language compiler and as such all Borland license statements
must be respected.
For direct order -
Send Registration to: Mark D. Rafn (MDRUtils)
Rt1 Box138A
Two Harbors, MN 55616
USA
tel: (218) 834-5154
CIS: 71530,2307
------------------------------------------------------------------------------
RUNNING SAMPLES
------------------------------------------------------------------------------
■ Two sample programs have been included to show some of the capabilities of
the enclosed code. PCXPLAY.PAS shows decoding and encoding methods.
(Encoding has been commented out). PALPLAY.PAS shows some basic Vga
palette techniques necessary when dealing with 256 color PCX files.
Palettes will undoubtedly create the biggest problem in your programs.
Reading a PCX file's palette entries into the color registers will change
all the colors you are use to dealing with. The TPPCX-VGA256 manual
explains in detail how you can remap your BGI colors and with minimal
experimentation can retain the standard colors for use by the rest of your
program.
■ IMPORTANT STUFF
For those of you not familiar with utilizing a user driver (VESA.BGI or
VGA256.BGI), the driver MUST reside in the current working directory. ie:
If you load Turbo Pascal from the directory C:\TP and load the sample
file PCXPLAY from a directory called C:\TP\TEST (without changing to that
directory), then the BGI drivers must reside in C:\TP. If you change
directory within the IDE to C:\TP\TEST, then the driver must be in
C:\TP\TEST.
The best way to run the sample program is to:
1. Create a temporary directory.
2. Copy all the TPPCX-VGA256 files to that directory.
3. Load Turbo Pascal.
4. Change to the temporary directory from within the IDE.
(Files, Change Dir, <temp dir>)
5. Load sample files and run.
■ You can change the constant declarations at the beginning of the PCXPLAY
sample to name a differant PCX file for viewing.
■ To utilize the high resolution capabilities, don't forget to load your
VESA Extension software obtained from the graphics card manufacturer.
Without it you will be limited to 320 x 200 Vga mode (not very exciting).
■ TPPCX-VGA256 v1.0 has been tested satisfactorily under the following
conditions (a check indicates passed):
────────────────┬─────┬────────┬─────────┬───────────┬───────
│Image│ Full │ Clipped │ Bleed-Off │ Large
Mode │Type │ Image │ Image │ Image │ Image (>1Mb)
────────────────┼─────┼────────┼─────────┼───────────┼───────
VGA 320x200x256 │ 1,2 │ √ │ √ │ √ │ √
VGA 640x400x16 │ 1,2 │ √ │ √ │ √ │ √
VGA 640x350x16 │ 1,2 │ √ │ √ │ √ │ √
VGA 640x480x16 │ 1,2 │ √ │ √ │ √ │ √
VESA 640x400x256 │ 1,2 │ √ │ √ │ √ │ √
VESA 640x480x256 │ 1,2 │ √ │ √ │ √ │ √
VESA 800x600x256 │ 1,2 │ √ │ √ │ √ │ √
VESA 1024x768x256│ 1,2 │ √ │ √ │ √ │ √
VESA 800x600x16 │ 1,2 │ √ │ √ │ √ │ √
VESA 1024x768x16 │ 1,2 │ √ │ √ │ √ │ √
────────────────┴─────┴────────┴─────────┴───────────┴───────
1 = Planar image; 16 color, 1 bit per pixel
2 = Packed image; 256 color, 8 bits per pixel
Thank You - your cooperation is appreciated.