delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/22/21:59:50

From: Todorovic <todorus AT eunet DOT yu>
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: <rglk8sgs1npdea8hejju3sej6gh2b2ofo2@4ax.com>
References: <s2lj8sgn5sea1n1s4ra24b39enjcndplsp AT 4ax DOT com>
NNTP-Posting-Host: p-4.125.eunet.yu
Mime-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019