Hi, is there a way that a specific pixel point can be rounded to its nearest pure color in its current state and then using an if statment to act if that color changes?
I can get the decimal values for pixel colors using the getpixel api, but my problem with that is the numbers changes very slightly with even the smallest different shade of the same color. Though i can work with that its a real hassle when you can come up with 10 different decimal values for something to the plain eye is black.
For example, if i look at two pixels side by each other that look like they are black but one of them has the decimal value of 2565927 and the next one is 1315860, could i create a code for my program to read each of those pixel positions and consider them as being 0 - pure black.
Ive searched around the forum for converting and determining shades but only knowing the bare basics of pixel color values I didnt manage to understand too much. So any code of this subject would be awesome. Thanks




Reply With Quote