Category : C Source Code
Archive   : GIFLIB11.ZIP
Filename : GIFHISTO.DOC

 
Output of file : GIFHISTO.DOC contained in archive : GIFLIB11.ZIP
GifHisto
--------

Program to create histogram of number of pixels using each color. Output
can be formated into a GIF histogram file, or text file - both goes to
stdout.


Usage:
------

Usage: GifHisto [-t] [-s Width Height] [-n ImageNumber] [-b] [-h] GifFile

If no GifFile is given, GifHisto will try to read stdin for GIF file.

Memory required:
----------------

Line.


Options:
--------

1. [-t] : Force output to be text file of the form: Size of colormap lines
each contains two integers: number of times color appeared, and color
index. This in increasing color index order. This output can be fed
directly to msdos SORT program if number of times color appears ordering
is desired.
The colrmap picked is the one to be used for the image to generate
histogram for, as defined in GIF format.
2. [-s Width Height] : Size of GIF histogram file. The Height of the
histogram should be power of 2 dividable by number of colors in colormap.
Width sets the resolution (accuracy if you like) of the histogram as
the maximum histogram bar is scaled to fit it.
3. [-n ImageNumber] : Image number to test. Default is one.
4. [-b] : Zeros the background color count. As only linear scale bars is
supported and usually the background appears much more times then rest
of colors, deleting back ground count will improve the scaling of other
colors.
5. [-h] : print one command line help, similar to Usage above.


  3 Responses to “Category : C Source Code
Archive   : GIFLIB11.ZIP
Filename : GIFHISTO.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/