Sign in to follow this  
Followers 0
DasAuto

PixelGetColor for an area instead of a point

8 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

_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]

Share this post


Link to post
Share on other sites

Thank you so much for the info, I will be looking into it.


I code, therefore It exits

Share this post


Link to post
Share on other sites

#8 ·  Posted (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 by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0