From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro bitmaps Date: Sat, 22 Mar 1997 12:55:14 +0000 Organization: None Distribution: world Message-ID: References: <01bc36a8$c77e9aa0$522549c2 AT default> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 15 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Thomas Harte writes: > How do you find out the size of an Allegro bitmap? >I read the Allegro.txt, and it told me about the bitmap struct, but >.h & .w don't work. What is the correct way to read the >dimensions of an Allegro bitmap? If your bitmap variable is a pointer, declared with something along the lines of BITMAP *bmp; you need to use the pointer to member syntax of bmp->w and bmp->h, rather than bmp.w. Get a book on C and read the section on pointers and structures... -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ Beauty is a French phonetic corruption of a short cloth neck ornament.