Andrew Sparkes Posted March 20, 2006 Share Posted March 20, 2006 Is there any way in autoit to read and manipulate, and then save a picture? I looked around the scripts and scraps forum as way as the help file, and all I found was LazyCat's ImageGetInfo udf. The best way I could think of to do what I want, would be to read each pixel into autoit as a hex or decimal color into an array. A very large array..... Is there anything like that that anyone knows of? Like a _ReadImageIntoArray() function or similar? If I wanted to modify images in autoit, how would I go about doing so? I can only hope that it is simpler than what is inside LazyCat's udf... Could the gd library for php be used in autoit? or perhaps the CImg library in C++? Is there a way to read an image, then use a Pixelcolorsearch type process then replace a certain color? or pattern of colors? I would post code, but I have little idea where to start... ---Sparkes. Link to comment Share on other sites More sharing options...
seandisanti Posted March 20, 2006 Share Posted March 20, 2006 Is there any way in autoit to read and manipulate, and then save a picture? I looked around the scripts and scraps forum as way as the help file, and all I found was LazyCat's ImageGetInfo udf. The best way I could think of to do what I want, would be to read each pixel into autoit as a hex or decimal color into an array. A very large array..... Is there anything like that that anyone knows of? Like a _ReadImageIntoArray() function or similar?If I wanted to modify images in autoit, how would I go about doing so? I can only hope that it is simpler than what is inside LazyCat's udf... Could the gd library for php be used in autoit? or perhaps the CImg library in C++?Is there a way to read an image, then use a Pixelcolorsearch type process then replace a certain color? or pattern of colors?I would post code, but I have little idea where to start...look for spraypaint script in scripts and scraps. it takes an image from a paintbrush window, then redraws it on screen. you should be able to learn from his application of the concepts you're looking researching. Link to comment Share on other sites More sharing options...
Confuzzled Posted March 23, 2006 Share Posted March 23, 2006 Is there any way in autoit to read and manipulate, and then save a picture? I looked around the scripts and scraps forum as way as the help file, and all I found was LazyCat's ImageGetInfo udf. The best way I could think of to do what I want, would be to read each pixel into autoit as a hex or decimal color into an array. A very large array..... Is there anything like that that anyone knows of? Like a _ReadImageIntoArray() function or similar?If I wanted to modify images in autoit, how would I go about doing so? I can only hope that it is simpler than what is inside LazyCat's udf... Could the gd library for php be used in autoit? or perhaps the CImg library in C++?Is there a way to read an image, then use a Pixelcolorsearch type process then replace a certain color? or pattern of colors?I would post code, but I have little idea where to start... Sorta like CorelDraw or PaintShop written in AutoIT script language?Isn't there open source image manipulation programs you could get ideas from? I know they are not written in AutoIT, but maybe the algorithms and OS calls would be documented there and could be converted into AutoIT DLL calls. Of course you will have to master binary string manipulation in AutoIT, so maybe getting a good grasp of that would be advisable first. Link to comment Share on other sites More sharing options...
billmez Posted March 24, 2006 Share Posted March 24, 2006 (edited) Is there any way in autoit to read and manipulate, and then save a picture? I looked around the scripts and scraps forum as way as the help file, and all I found was LazyCat's ImageGetInfo udf. The best way I could think of to do what I want, would be to read each pixel into autoit as a hex or decimal color into an array. A very large array..... Is there anything like that that anyone knows of? Like a _ReadImageIntoArray() function or similar?If I wanted to modify images in autoit, how would I go about doing so? I can only hope that it is simpler than what is inside LazyCat's udf... Could the gd library for php be used in autoit? or perhaps the CImg library in C++?Is there a way to read an image, then use a Pixelcolorsearch type process then replace a certain color? or pattern of colors?I would post code, but I have little idea where to start...There is a great freeware (for personal use) image viewer/manipulation program called IrfanView 32 that has a great batch processing mode and command line options for image manipulation. You can even script manipulation like contrast/bright, sharpness, etc., and convert almost any raster image format. You can download it from twocows.com Edited March 24, 2006 by billmez 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