From: Todorovic Newsgroups: comp.os.msdos.djgpp Subject: Re: Size of Loaded Bitmaps in Allegro Date: Sun, 23 Jan 2000 03:22:23 +0100 Organization: Public news server of EUnet Yugoslavia Lines: 15 Message-ID: References: NNTP-Posting-Host: p-4.125.eunet.yu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: SOLAIR2.EUnet.yu 948594020 12304 213.240.4.125 (23 Jan 2000 02:20:20 GMT) X-Complaints-To: abuse AT EUnet DOT yu NNTP-Posting-Date: 23 Jan 2000 02:20:20 GMT X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >Now, from what I can tell from the Allegro Docs, load_bitmap will create >the in_jpeg bitmap and load the JPG into it. However, how can I get the >width and height of that bitmap. For BITMAP *bmp, these values are stored in bmp->w and bmp->h. >Also, I'm assuming that the in_jpeg bitmap will be 24bit (or whatever) >but do I _have_ to go into graphics mode first. I'd prefer to stay in >Text mode all the way through and do all the graphics stuff in memory. No. You do not draw anything to screen, so you can stay in text-mode. Also, take a look at function create_bitmap_ex, it could be helpful to you. Alexa