[fpc-devel] TFPCustomCanvas Expanded Clipping

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Thu Dec 8 09:33:53 CET 2011



On Thu, 8 Dec 2011, Felipe Monteiro de Carvalho wrote:

> Some more changes I'd like to propose. It seams that Rectangle is not
> TCanvas compatible:
>
> procedure TFPPixelCanvas.DoRectangle (const Bounds:TRect);
>
> A rectangle over (0, 0, 10, 10) should not include the pixels line
> with x=10 and y=10 but instead go only to x=9 and y=9, it is
> considered that the position is in the top-left of the pixel
>
> DoLine should not include the last point of the line (maybe unless you
> have a pen cap), although this one is a bit confusing. But it is how
> TCanvas works.

Yes, but changing this will break existing code ?

Michael.



More information about the fpc-devel mailing list