Mail Archives: djgpp/2000/01/03/11:52:56
On Sun, 2 Jan 2000, Matej wrote:
> > Just pick a color that you want to be transparent, most people choose 255
> > or just 0, and make a BMP displayer that skips the pixels with that value.
>
>
> Yes, but how to do it? Can you give me an example?
> Thanks
Well, picking the color is something you can do by yourself.
Skipping is just a simple 'if'
if( value != 255 )
screen[ptr] = value;
instead of just
screen[ptr] = value;
I don't know what your code looks like exactly, but this is a simple example.
If you can send me the complete bmp loader, I will tell you what to do.
Btw. It might be a better idea to send the code to my email address instead
of the mailinglist/newsgroup.
---------
Wilmer van der Gaast (lintux AT dds DOT nl)
ICQ 55707076
- Raw text -