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
>