+ Reply to Thread
Results 1 to 2 of 2

Thread: How can I load images like BMP, GIF, JPEG and PNG in MFC application?

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    26

    How can I load images like BMP, GIF, JPEG and PNG in MFC application?

    I have a MFC application and want to load images of different kind.

    How can I load images like GIF, JPEG, PNG etc?

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    37
    You can use CImage MFC class.

    Pseudo code:

    Code:
    CImage ObjImage ;
    ObjImage.Load(...) ;
    CBitmap* pBitmap = CBitmap::FromHandle(image.m_hBitmap) ;
    //use this pBitmap wherever you want to.
    For more information:
    http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts