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.
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.
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
But why is he then talking about bit values. Don't you get that by using GetPixel()...![]()
yeah.. that's confusing me, if he is talking about the bitmap, then getDIBbits (sic?) get access to the bits..Originally Posted by NoteMe
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
I wasn't thinking straight. Been programming now for over 10 hrs; I'm ready to shutdown.![]()
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.