|
-
Jan 21st, 2005, 09:40 PM
#1
Thread Starter
Frenzied Member
Get Bits of an HDC
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.
-
Jan 21st, 2005, 09:42 PM
#2
Re: Get Bits of an HDC
Do you mean the colors or the bit depth?
-
Jan 21st, 2005, 09:45 PM
#3
transcendental analytic
Re: Get Bits of an HDC
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.
-
Jan 21st, 2005, 09:52 PM
#4
Re: Get Bits of an HDC
But why is he then talking about bit values. Don't you get that by using GetPixel()...
-
Jan 21st, 2005, 10:01 PM
#5
transcendental analytic
Re: Get Bits of an HDC
 Originally Posted by NoteMe
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..
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.
-
Jan 22nd, 2005, 12:00 AM
#6
Thread Starter
Frenzied Member
Re: Get Bits of an HDC
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.
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
|