|
-
May 11th, 1999, 09:39 PM
#1
From Bitmap File to HBITMAP
Hello;
I would like to know, is it possible to get the HBITMAP from a *.bmp (or *.dib) without show the
file into a HDC? Anyone can show me a easy way to do this in Win32/MFC?
Thanks
Hello World!!!
-
May 12th, 1999, 03:12 AM
#2
Re: From Bitmap File to HBITMAP
The ::LoadImage() function returns a handle which can be cast to an HBITMAP (I believe), although you can't load from file using this function under NT (for some stupid reason).
-
May 12th, 1999, 06:50 AM
#3
Re: From Bitmap File to HBITMAP
LoadImage along with some extra code can be used to read a BMP file. Refer to Article ID: Q158898 "How To Use LoadImage() to Read a BMP File" in MSDN.
You can use ::ReadDIBFile for *.dib files. Refer to DIBLOOK example of MSDN for the same
Hope this helps
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
|