Re: Need help with some pixel calculations

I'm not above showing half finished, terribly written, broken code.  Here is what I came up with yesterday and assumed I'd get time to finish it today, that doesn't seem to be the case.  It partially works but as you can see from my example code the Red box is too large, and actually crosses over a defined rect due to the second half of the rules not being completed right.

0 Kudos