Results 1 to 7 of 7

Thread: Is BMP?

  1. #1

    Thread Starter
    Hyperactive Member AAG's Avatar
    Join Date
    Aug 2000
    Location
    United States
    Posts
    411

    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.

  2. #2
    Zaei
    Guest
    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.

  3. #3

    Thread Starter
    Hyperactive Member AAG's Avatar
    Join Date
    Aug 2000
    Location
    United States
    Posts
    411

    ok thanx.

    i'll look around

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  5. #5

    Thread Starter
    Hyperactive Member AAG's Avatar
    Join Date
    Aug 2000
    Location
    United States
    Posts
    411
    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

  6. #6
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Maybe zLib would help.
    Harry.

    "From one thing, know ten thousand things."

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width