| delorie.com/archives/browse.cgi | search |
| From: | "Thomas Harte" <T DOT Harte AT btinternet DOT com DOT DELETE_HERE> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: "load_bitmap" newbie... |
| Date: | Sat, 8 Jul 2000 14:05:44 +0100 |
| Organization: | BT Internet |
| Lines: | 12 |
| Message-ID: | <8k7904$lq6$1@neptunium.btinternet.com> |
| References: | <39553338_2 AT spamkiller DOT newsfeeds DOT com> |
| NNTP-Posting-Host: | host62-7-38-187.btinternet.com |
| X-Newsreader: | Microsoft Outlook Express 4.72.3155.0 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3155.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
> load_bitmap(pic,pal);
Try "pic = load_bitmap("Test.bmp", pal);", Allegro takes the filename of the
bitmap as the first argument, and returns a pointer to a BITMAP structure,
as well as filling the palette structure named with the palette from the
file. Don't forget to destroy_bitmap(pic) when you are finished using it!
-Thomas
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |