|
-
May 26th, 2001, 07:58 PM
#1
Thread Starter
Hyperactive Member
Is BMP?
Are .bmp's the only picture format you can use with msvc++ ? .Bmp's tend to be pretty big in size, and I would like to add some nice graphics to my program, but even a little picture in .bmp format is 26kb, and the whole point of this program is filesize. Right now without any pictures, its 32kb. I would like to keep the filesze under 45kb, but with a .bmp, it goes over that limit ? Does anybody know how to use other picture file formats with msvc++ ? I program using pure API, no MFC.
-
May 26th, 2001, 09:00 PM
#2
Windows directly supports bitmaps. For other data types, you will have to find out how they are stored, and decompress them so you can display them. There is code for this stuff all over the web.
Z.
-
May 26th, 2001, 09:06 PM
#3
Thread Starter
Hyperactive Member
ok thanx.
i'll look around
-
May 27th, 2001, 07:13 AM
#4
Monday Morning Lunatic
Windows 98/2000 support JFIF images as well, you need to check the docs for the API parameters. However, the easiest way is just to load them yourself 
ImLib (or something like that) loads lots of formats. PNG is probably the best alternative to BMP, go to www.libpng.org and the "png" link.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
May 27th, 2001, 08:23 AM
#5
Thread Starter
Hyperactive Member
ok well i found quite a few libs that display alot of different file formats. They all will up my final exe size to over 150 kb and thats without pictures . Oh well i just won't use any images
-
May 27th, 2001, 08:30 AM
#6
Frenzied Member
Harry.
"From one thing, know ten thousand things."
-
May 27th, 2001, 08:32 AM
#7
Monday Morning Lunatic
libpng uses zLib internally.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|