GetPixel is a Windows GDI API function which retrieves the RGB color value of the pixel at a specific coordinates.
Questions tagged [getpixel]
199 questions
-2
votes
2 answers
Why it turns out that "pix1 is not defined"?
My code is going like this:
function printPixel(nameImage, xpos, ypos) {
var someImg = new SimpleImage(nameImage);
var pix1 = someImg.getPixel(xpos,ypos);
return pix1.getRed();
}
console.log(pix1)
printPixel("drewgreen.png",10,…

RaymondGuo001
- 37
- 2
-2
votes
1 answer
can't get getpixel from HWND
I am trying to get pixel color from hwnd
but it doesn't work
When I put "GetDC(NULL)" It worked
but "GetDC(hwnd_child)" is always 255,255,255.
please help
#include
#include
using namespace std;
int main() {
POINT pos;
…

ngmany
- 7
-2
votes
1 answer
(C++) How to use GetPixel() of x y on screen
Could someone make some code that gets the pixel of an x y coord on screen and explain how the code works. I have read other examples but I dont know what all the functions and code do. Thanks.

Johnathan Maxwell
- 35
- 3
-12
votes
1 answer
What is the color white returned from the GetPixel() method?
What is the RBG value of the color white returned from the GetPixel() method?
Is it (255, 255, 255) or (0, 0, 0)?

Payam Hesami
- 97
- 1
- 11