Loading images other than Bitmaps

This is a discussion on Loading images other than Bitmaps within the Windows Programming forums, part of the Platform Specific Boards category; >This article you gave me makes GDI+ look Win32 specific. This is the Windows board, is it not? >Is this ...

  1. #16
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >This article you gave me makes GDI+ look Win32 specific.

    This is the Windows board, is it not?

    >Is this the only way to use image files (besides bitmaps)?

    As already stated you can look into the file formats yourself and convert them (quite a lot of work for some file types), or use a third party library (intel has a free jpeg library on their site).

  2. #17
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Originally posted by Sorensen
    >This article you gave me makes GDI+ look Win32 specific.

    This is the Windows board, is it not?

    >Is this the only way to use image files (besides bitmaps)?

    As already stated you can look into the file formats yourself and convert them (quite a lot of work for some file types), or use a third party library (intel has a free jpeg library on their site).
    Oops! I seriously meant to write WinXP instead of Win32. On the microsoft site, it only mentioned WinXP, not Win9x. Could you give me an overview of how to convert file types? Do you just read them and then change the data that you read in? Thanks...

    Garfield
    1978 Silver Anniversary Corvette

  3. #18
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >Could you give me an overview of how to convert file types? Do you just read them and then change the data that you read in?

    Yes, read the source file, construct the bitmap headers, convert the actual image data from the source file into the required bitmap format and construct a bitmap to display. Depending on the source file format this isn't always a trivial process. And depending on this format learning how to use GDI+ in Windows 98 will probably be the easier option.

    If you want to go ahead a convert them yourself, make sure you've got a good grasp on the Windows Bitmap format and take a look at -

    http://www.dcs.ed.ac.uk/home/mxr/gfx/utils-hi.html

    which looks like it has plenty of info.

  4. #19
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Thanks for the link! I'll take a look at GDI+ and converting the files to choose which to do. Thanks again!

    Garfield
    1978 Silver Anniversary Corvette

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Loading Images in C
    By bucyyohare in forum C Programming
    Replies: 5
    Last Post: 02-28-2008, 04:52 PM
  2. Problem Loading Bitmaps in Allegro
    By LiNeAr in forum Game Programming
    Replies: 1
    Last Post: 08-15-2005, 04:12 PM
  3. Loading bitmaps with createfile() +CreateDIBSection
    By Stevo in forum Windows Programming
    Replies: 7
    Last Post: 05-13-2004, 09:22 PM
  4. Loading .jpg images from a file
    By Echidna in forum Windows Programming
    Replies: 4
    Last Post: 04-20-2002, 03:09 PM
  5. Loading Bitmaps
    By Neandrake in forum Windows Programming
    Replies: 4
    Last Post: 12-17-2001, 12:50 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21