Re: Bitmap File Format

Search this archive.

From: Indraneel Majumdar (indraneel@www.cdfd.org.in)
Date: Mon 10 Jul 2000 - 19:58:17 IDT


Hi,

thanks for the tip. I'll try this if I need to save to BMP. The code that
Sergio had offered for PNG format is working great with slight
modifications. Thanks a lot. I've incorporated it to 'dnacgr' (available
at metalab), a tool to visualise DNA/RNA sequences.

Thanks,
Indraneel

On Sun, 9 Jul 2000, Patrick Mochel wrote:

> > 
> On Sun, 9 Jul 2000, Sergio Masci wrote:
> 
> > 
> > Before applying the BMP colours to the hardware colour palette (via
> > vga_setpalette) try the following mystical incantation - it may help.
> > svgalib_red   = (bmp_red   >> 2) & 0x3f;
> > svgalib_green = (bmp_green >> 2) & 0x3f;
> > svgalib_blue  = (bmp_blue  >> 2) & 0x3f;
> 
> Thanks.  That worked.  But why?
> 
> 
> -pat
> 


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST