DasAuto Posted July 26, 2013 Share Posted July 26, 2013 Hi Fellow Coders I am looking for an Efficient user function of getting an area of pixels' colors and return a multi dimensional array. I am not asking for a simple nested for loops that does pixelgetcolor for each pixel, I am more of looking for a more root level approach that is more efficient and fast. Thanks I code, therefore It exits Link to comment Share on other sites More sharing options...
Edano Posted July 26, 2013 Share Posted July 26, 2013 (edited) unless you don't invent a function, you will have to do it with loops. but what's the problem ? the speed probably ? E. Edited July 26, 2013 by Edano [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font] Link to comment Share on other sites More sharing options...
DasAuto Posted July 26, 2013 Author Share Posted July 26, 2013 Hi, thanks for replying. I am actually looking for an invented function using some magical windows handles... or something directly from the graphic card's rasterizer or whatever. according to my half baked intuition a frame was put on screen from "the frame buffer" ( I don't really know) as an array the first place. I would like to read directly from that buffer in bulk, not just one pixel at a time. thanks I code, therefore It exits Link to comment Share on other sites More sharing options...
Edano Posted July 27, 2013 Share Posted July 27, 2013 _ScreenCapture_Capture() returns a Hbitmap handle. and this can be handled by GDUIPlus. i just don't see how to get the info you want. but you find some advanced GDIPlus 1.1 functions in the forum that are not documented yet. E [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font] Link to comment Share on other sites More sharing options...
Edano Posted July 27, 2013 Share Posted July 27, 2013 recommended source: http://www.jose.it-berater.org/gdiplus/iframe/index.htm [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font] Link to comment Share on other sites More sharing options...
DasAuto Posted July 27, 2013 Author Share Posted July 27, 2013 Thank you so much for the info, I will be looking into it. I code, therefore It exits Link to comment Share on other sites More sharing options...
junkew Posted July 28, 2013 Share Posted July 28, 2013 Search for findbmp in the forums and read the related links and functions 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...
Blue_Drache Posted July 29, 2013 Share Posted July 29, 2013 (edited) Um ... what did I use waaaaaaaaaay back when.... Oh yeah ... PixelChecksum() Though ... this doesn't return a multidimensional array, only the integer (or hex) value of the region's pixel colours added together. I used it as a very crude and dirty form of an OCR in a specific situation. Edited July 29, 2013 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache 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