Is there maby a possiblity to retreive color values and position with use of the HBITMAP pointer?
Type: Posts; User: pur
Is there maby a possiblity to retreive color values and position with use of the HBITMAP pointer?
I got the functions in a win32 DLL for wrapping. Because i'm using it in an different programming language. In that language i only have a setPixel function i can use.
Ah ok, but there isn't any equivalant of getpixel on HBitmap.
I'm using getPixel on hdcMem . I'm getting more and more confused about the code you guys supply-ing and even if it's all needed.
If i do it like this , with use of bitbtl , i get a part of the screen back instead of the window. And it still seems to be in 256 colors. :/
HDC doBitmap(HWND hwnd) {
int result;
int height...
Where whould you put the bitblt line... ?
i just tried to use bitblt , but then i'm not getting the window capture but just a part of it or the pixels on the same location of some other window...
I'm using the DLL in an different programming language, and i need to get a screen of a window in there. GetPixel is an easy way to retreive the color values.
And getpixel can use the HDC pointer.
I got the following code in a DLL , also i got another function wrapping getPixel. But i got 2 problems with result i'm getting.
- One is that the image looks more stretched than it should be
...