Sign in to follow this  
Followers 0
awayne

Determining lenth and height off screen coordinates

2 posts in this topic

I am using PixelCheckSum and I am wanting to make sure the coordinates I am using are covering say the same area using a rectangle.  Is there math etc to make sure I am covering the same area.

My ultimate goal is to have a stored checksum as a scalar variable and look in an area on the screen and determine if the checksum value exist in that area.  When I am creating the initial variables I need to make sure my look at area is going to be the same size rectangle as my initial value.

Thanks to all who reply

:)

Share this post


Link to post
Share on other sites



A LOT OF Googling answered my question.  I will have to play around with this to get the length and width values from coordinate values it appears they are subtracting.  Also can do perimeter.  Good ol geometry.

http://www.mathopenref.com/coordrectareaperim.html

I will likely script something to make sure my coordinate grabs are equal in area.

:)

A side question how can I make sure that smoothing is turned off since that can create conflicting checksum values??  I will be honest I am not even certain I know what smoothing is.

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