where is it?

This is a discussion on where is it? within the Windows Programming forums, part of the Platform Specific Boards category; I have made an offscreen dc. I used createcompatibledc and bitmap , and selectobject. But how can I get the ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    161

    where is it?

    I have made an offscreen dc. I used createcompatibledc and bitmap , and selectobject. But how can I get the position in memory of where each pixel color is located?

    Thanx in advance!

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    The quick and easy (but slow) way to get colour information is to use GetPixel. The not so easy way is to use GetDIBits.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    161
    Thanx. Thats copying back and forth. Ill do that if I can't find my answer. I remember there is a way to do direct read/write access. If I can just find it in memory I can use pointers to modify the pixels. I am still researching. Maby it is GetObjectA.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21