| delorie.com/archives/browse.cgi | search |
| From: | "Justin Szczap" <jmszczap82 AT adelphia DOT net> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <oAiV4.1440$D%2 DOT 35145 AT news1 DOT news DOT adelphia DOT net> <j7peis0sdsgbjkm67koov4ei7h5rakp8j0 AT 4ax DOT com> |
| Subject: | Re: Transparency Difficulties... |
| Lines: | 17 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.00.2919.6600 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
| Message-ID: | <eqnW4.1983$D%2.48227@news1.news.adelphia.net> |
| Date: | Tue, 23 May 2000 04:03:22 GMT |
| NNTP-Posting-Host: | 24.49.84.244 |
| X-Complaints-To: | abuse AT adelphia DOT net |
| X-Trace: | news1.news.adelphia.net 959054602 24.49.84.244 (Tue, 23 May 2000 00:03:22 EDT) |
| NNTP-Posting-Date: | Tue, 23 May 2000 00:03:22 EDT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hi,
I've loaded a bitmap and displayed it with no problem. The bitmap is not
full screen. The area of the screen which is not the bitmap, is the
'transparent' pink/purple color. Here's a sample:
void display_bitmap()
{
BITMAP *the_bitmap;
PALETTE the_pal;
the_bitmap=load_bitmap("bitmap.bmp", the_pal);
set_palette(the_bitmap);
blit(the_bitmap, screen, 0, 0, 0, 0, 640, 480);
destroy_bitmap(the_bitmap);
}
- JS
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |