Sign in to follow this  
Followers 0
Xibalba

PixelCheckSum parameters

1 post in this topic

#1 ·  Posted (edited)

EDIT: I got no idea what went on in my mind here, I figured it all out by testing.

Just ignore

I have an image beginning at 100 pixels from the left and 100 pixels from the top of my screen (the images first top-left pixel would be 101, 101).

I want a checksum of my image.

Which call is correct?

$checksum = PixelChecksum(100, 100, 400, 400)

or

$checksum = PixelChecksum(99, 99, 399, 399)

I'm asking because function calls like PixelGetColor(10, 100) in fact returns the 11th and 101st pixel ("the next one")

Also, If I want default parameter values for step and hwnd, but mode 1, do I type:

$checksum = PixelChecksum(100, 100, 400, 400, "", "", 1)

?

Thanks

Edited by Xibalba

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