AdmiralAlkex Posted April 15, 2008 Share Posted April 15, 2008 I need to load a picture and then create a 2d-array with the color for every pixel in it. The first dimension should be the height and the second the width. Now I know that I could GUICtrlCreatePic() and then loop PixelGetColor() but I was wondering if there's a better way?? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
weaponx Posted April 16, 2008 Share Posted April 16, 2008 Maybe try:http://www.autoitscript.com/forum/index.ph...p++pixel++array Link to comment Share on other sites More sharing options...
junkew Posted April 16, 2008 Share Posted April 16, 2008 For BMP files you can use logic as pointed to inhttp://www.autoitscript.com/forum/index.ph...mp;#entry493137For more ways you should search for GetDIBits, BitBLT, PixelSearch, PixelGetColor in the forum FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 16, 2008 Author Share Posted April 16, 2008 Thank you both for your ideas, I am definitely gonna check them out .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jvanegmond Posted April 16, 2008 Share Posted April 16, 2008 Ready to roll: http://www.autoitscript.com/forum/index.php?showtopic=63318 github.com/jvanegmond 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