I want access to the bit values of an HDC. How can I get them? No, I am not talking about making a Double Buffer. I'm trying to eliminate some backbuffers.
Printable View
I want access to the bit values of an HDC. How can I get them? No, I am not talking about making a Double Buffer. I'm trying to eliminate some backbuffers.
Do you mean the colors or the bit depth?
colour and bit depth are part of the bitmap note, not the device context ;)
If you want to remove the backbuffers, you can use selectobject on the dc and then deleteobject it.
But why is he then talking about bit values. Don't you get that by using GetPixel()...:confused:
yeah.. that's confusing me, if he is talking about the bitmap, then getDIBbits (sic?) get access to the bits..Quote:
Originally Posted by NoteMe
I wasn't thinking straight. Been programming now for over 10 hrs; I'm ready to shutdown. :o
SetPixel is too slow, which is why I avoid it, but the right idea. I think I'll just use a blitting workaround.
Thanks for the help.