From: lists@123india.com
Date: Tue 04 Jul 2000 - 07:51:36 IDT
hi, 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 line. 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) TIA, Indraneel On Mon, 3 Jul 2000, Matan Ziv-Av wrote: > On Mon, 3 Jul 2000 lists@123india.com 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@123india.com # # Bioinformatics Unit (EMBNET node), ¡ URL: http://scorpius.iwarp.com # # Centre for DNA Fingerprinting and Diagnostics, # # Hyderabad, India - 500076 # `************************************************************************/
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST