CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 1999
    Posts
    8

    display a .jpg file with MFC ?

    Hi,

    Is there a way to display a .jpg file by using MFC? or to convert a .jpg file to a bitmap?
    Thanks,


  2. #2
    Guest

    Re: display a .jpg file with MFC ?

    In CodeGuru's "Bitmap & Palettes" section, there are several "external links" given that contain articles on, among other things, decoding jpegs to bmps. I believe they ultimately rely on Thomas Lane's Independent JPEG Group's jpeg.lib for the encoding/decoding. Be prepared to tinker a bit to get things to work. I myself am in the process of putting together a very simple MFC-based jpeg/bmp encoder/decoder using jpeglib and Wes Roger's "Writing a DIB to a JPEG File" article. If I make any progress anytime soon, I'll give you and update. Good luck!


  3. #3
    Join Date
    May 1999
    Posts
    6

    Re: display a .jpg file with MFC ?

    Hi,

    Ever tried Win32SDK LoadImage function?


  4. #4
    Join Date
    Jan 2001
    Location
    Pune,India
    Posts
    15

    Re: display a .jpg file with MFC ?

    Hi

    can u send me the code for same?

    Vishal SHewale



  5. #5
    Join Date
    Aug 1999
    Location
    Germany, Munich
    Posts
    148

    Re: display a .jpg file with MFC ?

    Try OleLoadPicture & search MSDN for the sample "LOADPIC.EXE".

    HTH, Jens


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

Featured