Does anyone know of an easy way of converting HBITMAP to BITMAP so I can have the bitmap info. when I use GetObject() i can't access the info of the pixels. any help? It's probably really easy, but i'm not figuring it out.
Does anyone know of an easy way of converting HBITMAP to BITMAP so I can have the bitmap info. when I use GetObject() i can't access the info of the pixels. any help? It's probably really easy, but i'm not figuring it out.
Have you tried LockResource()?
This should give a pointer to the data
I used to do this in VB but i cant figure out how to convert it to C++
VC++ 6
There is
Bitmap::FromHBITMAP(hbm, hpal) in MSVC requiring GDI+ in non NT systems.
Or GetDIBits() may help.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill