Re: How to read rectangular part of screen, pixel-by-pixel?
- Posted by TheresNoTime Jun 23, 2013
- 1383 views
Well, despite all the solutions you've been given, you keep asking questions about how to do this. And what you're asking for seems to change slightly each time.
I admit that formulated the problem incorrectly. This is due to the fact that I'm not familiar with the technical side of the issue. However, the main point remains the same as in my first message. I want to be able to read pixel color in a specific location on the screen. I think you can read the pixels one by one. It turned out that it is necessary to read all at once to the array, and then read the one by one from the array. Only the result is important.
There's nothing wrong with trying to fine tune it like this, but we might be able to give you a quicker, more accurate answer if we better understood what you were trying to do.
OK. Now that I know about this a bit more, I can articulate exactly. I need a function, that make the screenshot and produce sequence of pixels' colors. It does not matter whether it is a one-dimensional or two-dimensional array. No matter what the form will be submitted to the pixel colors - RGB, CMYK... A redundant information (BMP header of something similar) may be present in this sequence. I want to extract the color of certain pixel from this sequence.