I have two questions:
- If I give the CreateBitmap() function a pointer to the pixel data I read from some file, will this data be copied? In other words, can I deallocate the pixel data after I created a bitmap?
- I am loading a TGA file, type 2, 32 bpp. Now I have the pixel data but what's the difference between using CreateDIBSection() to make it into a windows bitmap, or CreateBitmap()?
Or should I maybe use CreateCompatibleBitmap? But then how do I set the bpp to 32?
I don't know which function to use. CreateBitmap() works but I don't know if it's the best way.
Thanks in advance