CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Awais Chishti

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    3,652

    GetDIBits() returns wrong BGR values:

    GetDIBits() was not passing the correct BGR values to a COLORREF array:



    #include <windows.h>
    #include <iostream>
    using namespace std;

    int main() {int i; HBITMAP hBit; HDC bdc; BITMAPINFO...
  2. Replies
    5
    Views
    7,507

    Re: Trouble with GetDIBits()

    Well, in my case the return value is 1, so I guess the pixel is successfully scanned. But whether or not I call GetDIBits(), the same characters are stored in the array. I did read the documentation...
  3. Replies
    5
    Views
    7,507

    Trouble with GetDIBits()

    Hello guys, I'm new to C++ and I couldn't figure out the proper way to store pixel data of a device context into an array using GetDIBits(). Currently I am trying to get the RGB values of a single...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured