Zonarius Posted October 17, 2007 Posted October 17, 2007 Hi! First of all I'd like to say that AutoIt is a great language. I want to know how I can open a png file a get the color of a specific pixel. I could't find anything in Auto3lib and I also tried gdi32.dll but this didn't help me. Something like this would be nice: GetPixel("Filename", x, y) -Zonarius
Valuater Posted October 17, 2007 Posted October 17, 2007 (edited) EDIT; OK, not going to work 8) Edited October 17, 2007 by Valuater
weaponx Posted October 17, 2007 Posted October 17, 2007 Valuater - That method is no good, since he needs to extract exact pixels relative to the left/top origin of said picture.
Zedna Posted October 17, 2007 Posted October 17, 2007 Try some helper GUI with picture control on it. Then use GUICtrlSetImage to show your PNG. Then use Auto3Library with GDI+ to get exact pixel from picture control DC. Resources UDF ResourcesEx UDF AutoIt Forum Search
Valuater Posted October 17, 2007 Posted October 17, 2007 This should do the trickhttp://www.autoitscript.com/forum/index.ph...st&p=3570428)
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