Mail Archives: djgpp/2000/01/22/17:02:10
From: | Damian Yerrick <MYNAMEISd_yerrick AT hotmail DOT comNO2CANNEDHAM>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Size of Loaded Bitmaps in Allegro
|
Organization: | Pin Eight Software <http://pineight.8m.com/>
|
Message-ID: | <5m2k8s0nb6rga5kp7obeqk5evctub5uff8@4ax.com>
|
References: | <s2lj8sgn5sea1n1s4ra24b39enjcndplsp AT 4ax DOT com>
|
X-Newsreader: | Forte Agent 1.7/32.534
|
MIME-Version: | 1.0
|
Lines: | 27
|
X-Trace: | /K49oBExr2tz9uTnnv8Rb005fYGgZFtZVYa0BFm00hdm6UdBhwLR4HF3m9PRSpWEeWOb4Jp/Xum9!hPD6jufAHRUZEVKn5K8STZEfDWuP9gNOg6bWHaBdDnzhsi2xVIxQq1rV8sYgqjOoKWtpxLtsSQ==
|
X-Complaints-To: | abuse AT gte DOT net
|
X-Abuse-Info: | Please be sure to forward a copy of ALL headers
|
X-Abuse-Info: | Otherwise we will be unable to process your complaint properly
|
NNTP-Posting-Date: | Sat, 22 Jan 2000 19:59:07 GMT
|
Distribution: | world
|
Date: | Sat, 22 Jan 2000 19:59:07 GMT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
On Sat, 22 Jan 2000 17:01:55 +0000, Darac <You_Know_Who AT NoSpam DOT I DOT Am>
wrote:
>Hello everybody!
>
>I'm making a little program to convert JPGs into BMPs for my Windows
>Wallpaper. I've got LIBJPEG 1.03
Where did you get that? I haven't been able to find it around.
>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.
textprintf(screen, font, 0, 0, 15, "the bitmap is %d by %d pixels",
in_jpeg->w, in_jpeg->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.
Then use create_bitmap_ex() to make your truecolor bitmap.
--
Damian Yerrick http://yerricde.tripod.com/
View full sig at http://www.rose-hulman.edu/~yerricde/sig.html
Comment on story ideas at http://home1.gte.net/frodo/quickjot.html
- Raw text -