Fossil Rock Posted September 22, 2006 Share Posted September 22, 2006 Does PixelCheckSum contain any pixel color information ? If so, can you tell if there is a certain color in the PixelCheckSum value ? If not, is there a way calculate whether all the pixels are the same color or not ? I'm asking beacuse I do not know how the PixelCheckSum is calculated. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 22, 2006 Moderators Share Posted September 22, 2006 (edited) Does PixelCheckSum contain any pixel color information ?If so, can you tell if there is a certain color in the PixelCheckSum value ?If not, is there a way calculate whether all the pixels are the same color or not ?I'm asking beacuse I do not know how the PixelCheckSum is calculated.It's the sum of all the pixels, so the answer to your question is no.Edit:To the 2nd question, you'd need to write your own PixelGetColor()/PixelSearch() way of doing it, I've done it several times on the forum myself... don't know where though. Or, since you'll undoubtedly not like the speed, then write a dll doing it in C++ or some other lower level language. What are you making that you need specific colors found? Edited September 22, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Fossil Rock Posted September 22, 2006 Author Share Posted September 22, 2006 It's the sum of all the pixels, so the answer to your question is no.Do you know the formula for PCS? I would like to, if possible, reverse engineer it to determine if all the pixels are the same color or not.Or is there possibly another way to accomplish this task ? Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 22, 2006 Moderators Share Posted September 22, 2006 Do you know the formula for PCS? I would like to, if possible, reverse engineer it to determine if all the pixels are the same color or not.Or is there possibly another way to accomplish this task ?I answered your question already (both of them). Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Valik Posted September 22, 2006 Share Posted September 22, 2006 The algorithm is Adler-32. I doubt that you can reverse it to get back the original pixels. Link to comment Share on other sites More sharing options...
Fossil Rock Posted September 22, 2006 Author Share Posted September 22, 2006 It's the sum of all the pixels, so the answer to your question is no.Edit:To the 2nd question, you'd need to write your own PixelGetColor()/PixelSearch() way of doing it, I've done it several times on the forum myself... don't know where though. Or, since you'll undoubtedly not like the speed, then write a dll doing it in C++ or some other lower level language. What are you making that you need specific colors found?That's what I'm working on right now, and speed shouldn't be much off a problem, it's very small areas that need to be checked.The project I'm playing with right now is an OCR related utility.As to your most recent post.... sorry, I didn't notice that you had edited it so quickly.Thanks Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Fossil Rock Posted September 22, 2006 Author Share Posted September 22, 2006 The algorithm is Adler-32. I doubt that you can reverse it to get back the original pixels.Thanks, I'm writting my own routine, simply adding pixels (color) and then averaging them out.All I need to know is if they are all white or not.Thanks Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now