On Thu, Dec 8, 2011 at 11:49 AM, Hans-Peter Diettrich
<drdiettri...@aol.com> wrote:
> I'd suggest that you use the TCanvas conventions, before you run into well
> known pitfalls.
>
> E.g. an empty rectangle should be (x,y, x,y), while a single pixel should be
> (x,y, x+1,y+1). The Width is Right-Left, not Right-Left+1. Otherwise
> combining regions, tiling (tables...), rotating etc. will be overly
> complicated and consequently almost buggy.

Yes, in the case of the rectangle drawing I think it was a typo by who
implemented the current rectangle in fcl-image, I have done various
similar typos in my coding and they don't mean I really wanted to
redefine rectangle.

But the TCanvas line is trully confusing by not adding the last pixel.

-- 
Felipe Monteiro de Carvalho
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to