****** You can distribute this program freely for non-commercial use.
****** There is no warranty. The author is not responsible for any
damage caused by this program.
This program can let you READ, WRITE and DISPLAY images/movies with different
formats. It also let you do some special effects(rotation, dithering ...)
Include simple file management system.
Support 'slide show'.
Support 'batch conversion'.
There is NO LIMIT on image size.
This program supports 8, 15, 16, 24 bits display.
Support movie files(DL,FLI/FLC,RAW,MPEG,AVI).
Support contact sheet making.
The official site is NCTUCCCA.edu.tw:/PC/graphics/disp.
IP address is 220.127.116.11 or 18.104.22.168
(2) Hardware Requirement:
PC 386 or better. MSDOS 3.3 or higher.
I recommend min 8M bytes for better performance.
Hard disk for swapping(virtual memory).
The following description is borrowed from DJGPP.
* Up to 128M of extended memory (expanded under VCPI)
* Up to 128M of disk space used for swapping
* SuperVGA 256-color mode up to 1024x768
* XMS & VDISK memory allocation strategies
* VCPI programs, such as QEMM, DESQview, and 386MAX
* DPMI (Although go32 support DMPI. DISPLAY can't run under DPMI)
* Microsoft Windows
Features: 80387 emulator, 32-bit unix-ish environment, flat memory
model, SVGA graphics.
Video drivers, emu387 and go32.exe are borrowed from DJGPP.
This go32.exe(from DJGPP 1.10) is a modified version.
*** If this go32.exe is not compatible with other DJGPP program
in your system, DON'T put go32.exe within search path.
*** Please use RUNME.BAT to run this program.
*** Please use text editor to modify the configuration file, CONFIG.DIS.
If you choose xxxxx.grn as video driver. add 'driver xxxxx.grn' to GO32.
For example, go32=driver x:/xxxxx/xxxxx.grn
If you don't have 80x87, add 'emu x:/xxxxx/emu387' to environment GO32.
For example, go32=driver x:/xxxxx/xxxxx.grd emu x:/xxxxx/emu387
If you use VESANEW.GRN, there are three options for you :(These three
options have no effect on other video drivers)
'real' : Do bank switching in real mode (Recommended).
'prot' : Do bank switching in protected mode.
'none' : Let DISPLAY do bank switching for you (Always work).
For example, go32=real driver ............
If your memory manager supports DPMI, then you must add 'nodpmi' to GO32.
If you have video card with more than 1M bytes memory, add 'lvram' to GO32.
1. I only test tr8900.grn, et4000.grn and vesanew.grn. Other drivers are
2. I have modified et4000.grn to support 8, 15, 16, 24 bits display. You
don't need to use vesa driver.
If et4000.grn doesn't work, please try vesanew.grn.
3. For those who want to use HiColor or TrueColor display,
please use vesanew.grn(except et4000 users).
You can find vesa BIOS driver from :
(4) Command Line Switch:
display [-d|--display initial_display_type] [-s|--sort sort_method]
[-f config_file] [-a] [--slide] [-n l|g] [-h|-?]
[image_file(s) | @response_file]
for command-line batch conversion :
display (--batch | -b) output_format [--bw|--grey|--color|--true]
[--dialog | -g]
(file | file dir | file1 file2 | files dir)
Display type: 8(SVGA,default), 15, 16(HiColor), 24(TrueColor)
Sort method: 'name', 'ext'
-a: Always set to highest display type
-f: Read user specified config file only.
-n: Don't read Local or Global config file.
--slide: Do slide show for listed file(s).
output_format : Standard extensions. Like gif, bmp ... (see section (7))
default color type for batch conversion is Full color(8 bits).
(5) Function Key:
F1 : Print READ.ME.
F9 : For those who can't remember all commands of DISPLAY.
F2 : Change disk drive.
CTRL-A -- CTRL-Z : change disk drive.
F3 : Change filename mask. (See match.doc)
F4 : Change parameters.
F5 : Some effects on picture, eg. flip, rotate ....
F7 : Make Directory.
t,T : Tag file.(Can untag tagged files)
+ : Tag group files. (See match.doc)
When image is shown, '+' can change to next resolution.
ALT-T : Tag all files.
u,U : Untag file.
- : Untag group files. (See match.doc)
When image is shown, '-' can change to previuos resolution.
ALT-U : Untag all files.
Ins : Change display type (8,15,16,24).
F6,m,M : Move file(s).
ALT-M : Move single file(ignore tag).
F8,d,D : Delete file(s).
ALT-D : Delete single file(ignore tag).
r,R : Rename file.
c,C : Copy File(s).
ALT-C : Copy single file(ignore tag).
z,Z : Display first 10 bytes in Ascii, Hex and Dec modes.
f,F : Display disk free space.
Page Up/Down : Move one page.
TAB : Change processing target.
Arrow keys, Home, End, Page Up, Page Down: Scroll image.
Home: Left Most.
End: Right Most.
Page Up: Top Most.
Page Down: Bottom Most.
in 'screen' & 'effect' menu :
Left,Right arrow: Change display type(8, 15, 16, 24 bits).
CTRL-Arrow keys : Crop image by one line(in graphics mode).
CTRL-SHIFT-Arrow keys : Big Crop.(Controlled by 'big_crop_step').
s,S : Slide Show(show tagged files). ESCAPE to terminate.
b,B : Batch conversion(convert tagged files to single format).
You can perform up to 8 special operations.
Each is independent of others.
e,E : Contact sheet making.
w,W : Wait/Pause in slide show.
q,Q : Accumulation color quantization.
Find a best palette set for group of files.
Very useful for producing animation pictures.
l,L : List available graphic/text modes.
o,O : Display font.
ALT-X : Quit program without prompting.
ALT-A : Reread directory.
ALT-S : Save config file.
SHIFT-A..Z : Jump to first file whose name starts with this character.
F1 .. F8 : Gamma correction in graphic mode.
F1,F3,F5,F7: decrease Red,Green,Blue,All.
F2,F4,F6,F8: increase Red,Green,Blue,All.
F9,F10 : Zoom Out/In in graphic mode.
BACKSPACE : Go up one level of directory tree.
Escape : Abort function and return.
(6) Mouse Buttons:
MIDDLE button and CTRL-RIGHT button always mean ESCAPE.
in read/write menu:
single-click LEFT or RIGHT button = 'move select bar'.
double-click LEFT button = RETURN.
double-click RIGHT button = SPACE.
CTRL-LEFT button = Tag.
in other text menus:
RIGHT button means SPACE.
single-click LEFT button = 'move select bar'.
double-click LEFT button = RETURN.
in contact sheet preview:
RIGHT = show/hide mouse cursor.
LEFT = if (mouse cursor shown) move contact sheet.
else leave graphic mode.
CTRL-LEFT = move image piece.
in image display screen:
RIGHT = show/hide mouse cursor.
LEFT = if (mouse cursor shown) move image around screen.
else leave graphic mode.
CTRL-LEFT = move one page.
SHIFT-LEFT = show information box.
You can move this box around screen by click and drag.
In some text regions the mouse cursor will change. Press LEFT button
to do that function.
(7) Support Format:
+ Read: GIF(.gif), Japan MAG(.mag), Japan PIC(.jpc), Sun Raster(.ras),
Jpeg(.jpg), XBM(.xbm), Utah RLE(.rle), PBM(.pbm), PGM(.pgm),
PPM(.ppm), PM(.pm), PCX(.pcx), Japan MKI(.mki), Tiff(.tif),
Targa(.tga), XPM(.xpm), Mac Paint(.mac), GEM/IMG(.img),
IFF/ILBM(.iff,.lbm), Window BMP(.bmp), QRT ray tracing(.qrt),
Mac PICT(.pct), VIS(.vis), PDS(.pds), VIKING(.vik), VICAR(.vic),
FITS(.fit), Usenix FACE(.fac), IRIS(.sgi), YUV(.yuv), RAW,
DL(.dl), FLI(.fli), FLC(.flc), RAW(.raw, produced by DMPEG),
+ MPEG(.mpg), AVI(.avi), GL(.gl).
the extensions in () are standard extensions.
Write: GIF, Sun Raster, Jpeg, XBM, PBM, PGM, PPM, PM, Tiff, Targa,
XPM, Mac Paint, Ascii, Laser Jet, IFF/ILBM, Window BMP,
Mac PICT, VIS, FITS, FACE, PCX, GEM/IMG, IRIS, YUV, RAW.
All Read/Write support full color(8 bits), grey scale, b/w dither,
and 24 bits image, if allowed for that format.
Set default display type to highest display type.
Find allowable screen resolution(for .grn video driver only).
Read configuration file(Global and Local).
Global: where DISPLAY.EXE stays. Local: Where you are.
Process command line options.
1. When you run this program, you will enter 'read' menu. Whthin this
menu you can press any function key. If you move or copy
files, you will enter 'write' menu. the 'write' menu is much like
'read' menu, but only allow you to change directory.
The header line in 'read' menu includes "(d:xx,f:xx,t:xx)".
d : display type. f: number of files. t: number of tagged files.
pressing SPACE in 'read' menu will let you select which format to use
for reading current file.
pressing RETURN in 'read' menu will let you reading current file. This
program will automatically determine which format this file is.
The procedure is: First, check magic number. If fail, check
standard extension. Still fail, report error.
pressing s or S in 'read' menu will do 'Slide Show'.
If delay time is 0, program will wait until you hit a key
If any error occurs, program will make a beep.
'w' or 'W' to pause, any key to continue.
ESCAPE to terminate.
pressing b or B to do 'Batch Conversion'.
pressing Ins in 'read' menu will change display type.
pressing ALT-X in 'read' menu will quit program without prompting.
pressing F5 will turn on 'effect' menu.
2. Once image file is successfully read, you will enter 'screen' menu.
You can do special effect on image.
If you select a movie file, commands are the followings:
SPACE : pause playing. If you press 'w' or 'W', this program will
write current frame to file. After writing, screen will pause
at next frame.
ESCAPE : Terminate playing.
pressing RETURN: show image.
in graphic mode, press RETURN, SPACE or ESCAPE to return to text
press '+' and '-' to change screen resolution.
pressing TAB: change processing target. This program allows you to do
special effects on 8-bit or 24-bit image.
pressing Left,Right arrow: change display type. 8, 15, 16, 24 bits.
pressing SPACE: save current image to file.
B/W Dither: save as black/white image(1 bit).
Grey Scale: save as grey image(8 bits).
Full Color: save as color image(8 bits).
True Color: save as 24-bit image.
This program will ask you some questions if you want to write image
to file. Some questions are format-dependent. Finally This program
will prompt you a filename. If you want to save file under another
directory other than current directory, please press SPACE. after
pressing SPACE, you will enter 'write2' menu. You can change
directory to what you want. Then,
pressing SPACE: this program will prompt you 'original' filename.
pressing RETURN: this program will prompt you 'selected' filename
(filename under bar).
3. This program supports 8, 15, 16, 24 bits display.
4. This Program is MEMORY GREEDY. If you don't have enough memory,
the performance is poor.
5. If you want to save 8 bits image :
try GIF then TIFF(LZW) then TARGA then Sun Raster then BMP then ...
If you want to save 24 bits image (lossless):
try TIFF(LZW) or TARGA or ILBM or Sun Raster
(No one is better for true 24bits image)
6. I recommend Jpeg for storing 24 bits images, even 8 bits images.
7. Not all subroutines are fully tested
8. This document is not well written. If you have any PROBLEM, SUGGESTION,
COMMENT about this program,
Please send to [email protected]
I need your suggestions to improve this program.
(There is NO anonymous ftp on this site)
(9) Tech. information:
Program (user interface and some subroutines) written by Jih-Shin Ho.
Some subroutines are borrowed from XV(2.21) and PBMPLUS(dec 91).
JPEG is based on the library by Independent JPEG Group.
Tiff(V3.2) reading/writing are through Tiff library (from ftp.sgi.com).
DL is based on xdl.c & Xanim260.
FLI/FLC is based on the article in DDJ (Mar. 1993).
MPEG is based on Berkeley mpeg_play 2.0.
AVI is based on Xanim260 by Mark Podlipec.
Compiled with DJGPP.
You can get whole DJGPP package from :
(10) For Thoese who want to modify video driver:
1. For HiColor and TrueColor, Please reference ET4000.ASM:
I would like to thank the authors of XV and PBMPLUS for their permission
to let me use their subroutines.
Also I will thank the authors who write Tiff and Jpeg libraries.
Thank DJ. Without DJGPP I can't do any thing on PC.
The author would like to thank Olivier Dumas, Ben Jos Walbeehm,
Bryan Woodworth and other users for their advices and suggestions.
The author would like to thank NCTUCCCA for offering a place for DISP.
Jih-Shin Ho [email protected]