home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
crm_demo
/
chagall
/
dither
/
doc
/
dither_e.doc
next >
Wrap
Text File
|
1993-11-02
|
4KB
|
133 lines
DITHER V1.3: A program to create dithermatrices for GEMVIEW.
(Oct. 1993) This program is FREEWARE.
Author: Alexander Clauss
Stresemannstr. 44
64297 Darmstadt
Germany
email: aclauss@rbg.informatik.th-darmstadt.de
A short description
-------------------
Rename DITHER.PRG to DITHER.ACC if you want to use it as an accessory.
Language
--------
LANG\DITHER_G.RSC German
LANG\DITHER_E.RSC English
If you want to change the language of the programm, replace DITHER.RSC
by one of these files. (Rename it to DITHER.RSC and copy it to the same
location, where you placed DITHER.PRG)
What's a dithermatrix?
----------------------
A dithermatrix is an array with 16x16 positions. Each position of
this array contains a value between 0 (black) and 255 (white).
If you use 'ordered-dither' in GEMVIEW, a dithermatrix is used to
convert a colour or greyscale picture into a monochrome picture.
All colours of a picture must be replaced by a combination of black
and white pixels. For each pixel of the picture, GEMVIEW calculates
a value between 0 (black) and 255 (white). This value is compared
to the value of the dithermatrix, that is found at the following
position:
x_dither = x_picture mod 16
y_dither = y_picture mod 16.
If the pixel of the picture is darker than the pixel in the matrix,
GEMVIEW converts this pixel to black, otherwise to white.
Mode
----
256 shades (F2):
----------------
The dithermatrix is displayed with all 256 colours (black..grey
..white). In this mode, it is easy to edit the matrix, but it
is difficult to realize, how a special colour looks like, if it
is transformed with the matrix.
Black & white (F3):
-------------------
In this mode, it is easy to realize, how the current colour
(set by the slider) looks like, but editing is difficult.
All black and dark grey pixels are set, white and light grey
pixels aren't set (in the current colour).
White pixels aren't defined yet (equivalent to colour 0=black).
Black pixels are pixels in the current colour.
Calculate (F1):
---------------
In this mode you can create matrices automatically. After you
set some black (left-click) and white (SHIFT+left-click)
hotspots, click on the 'Create'-button. Now, the program
calculates a matrix (Near black hotspots the matrix will be dark;
near white hotspots it will be bright).
Test (F4):
----------
Shows the effect of the matrix on all 256 colours.
Great array (dithermatrix)
--------------------------
While pressing the left mousebutton, you set pixels in the current
colour (0..255) (mode: '256 shades' and 'black&white') or you set/
remove hotspots (mode: 'calculate').
With a doubleclick on a pixel, you set the current colour to the
value of that pixel.
Slider
------
The Slider sets the current colour (0=black..light grey..dark grey
..255=white).
The keys '+' and '-' increases/decreases this value, too.
Tools/Brightness (ALT-B)
------------------------
If you convert a picture with the new matrix (brightness changed),
it is getting brighter (positive values) or darker (negative values)
now.
In 'Test'-mode you will see the effect best.
Note: To the matrix itself (in '256 shades' or 'Calculate'-mode),
this has the opposite effect.
Tools/Reflect (ALT-H, ALT-V)
----------------------------
The matrix can be reflected horizontally or vertically.
Tools/Rotate (ALT-M, ALT-N)
---------------------------
You can rotate the matrix.
Create (CTRL-D)
---------------
In 'Calculate'-mode the program calculates a martix. You had to set at
least one hotspot (max. 64 black and/or white hotspots are possible).
Undo (UNDO)
Erase (CTRL-E),
Load (CTRL-O),
Save (CTRL-S),
Quit (RETURN,ENTER,CTRL-Q)
--------------------------
Need no explanation, I think.