[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: How to print to file in svgalib?


	I managed to save the color table by using gl_getpalettecolor as I
couldn't figure out how gl_getpalette was working. Then using raw2gif and
the saved color table (raw2gif is from libungif, not netpbm - sorry for
the mistake) I can make a .gif (uncompressed) from the screen dump. The
image is fine. I found out that a color table is a file with 4 entries per

	Which will be the best format to save a 256 color image? And which
library will be easy to use for that? (found out that a jpg is best for
24bit, not 8bit)


On Mon, 3 Jul 2000, Matan Ziv-Av wrote:
> On Mon, 3 Jul 2000 lists@xxxxxxxxxxxx wrote:
> > 	I've been struggling to get an output of my screen graphics for
> > the last 2 months. I just need a picture in jpg/png ( a screenshot). How
> > do I do this?
> Check that the raw files are really correct:
> Try clearing the screen and only drawing a single pixel of color 3 at
> (1,1) and then dump to file and check that the file is all zeros, except
> for a 3 in the 1025th byte.
> Set the palettet to something, and see if the color table file after you
> run your program has the values you programmed.

# Indraneel Majumdar                   ¡ E-mail: indraneel@xxxxxxxxxxxx  #
# Bioinformatics Unit (EMBNET node),   ¡ URL: http://scorpius.iwarp.com  #
# Centre for DNA Fingerprinting and Diagnostics,                         #
# Hyderabad, India - 500076                                              #