On Tue, Feb 26, 2008 at 11:44 AM, Ian Munro
< ian.munro%40grosvenortechnology.com">ian.munro
grosvenortechnology.com> wrote:
>
>
>
>
>
>
> Hi,
>
> Thanks for your help. The method you suggested is similar to one I
> had devised. I wasn't sure if other people were using some completely
> different method as speed is very important. I guess this method is as
> fast as it can be. One thing I did notice with your example, why the
> "-2" and "+;2" ?
>
> Ian
>
This is because my rect followed a convention that they contain upper
left pixel but not lower right. That is if rect is (10,10,100,100) it
means that it contains pixels 10,10 to 99,99. So for the function to
work correctly I added -2 and +2.
--
Pozdrav,
Igor Stojkovic mailto: stojkovic.igor%40gmail.com">stojkovic.igor
gmail.com
.