[Lazarus] Canvas.Rectangle question

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sat Aug 17 01:25:29 CEST 2019


On 16/08/2019 8:01 pm, Bo Berglund via lazarus wrote:
> Seems like if one does not draw the border at all (pen.width = 0) the
> resulting rectangle will be painted within a pixel correctly placed
> and sized.


If I recall correctly, both Win32 and XLib will render a line with the
thinnest possible width, when you set Pen.Width = 0.  But it's been a
while since I read those docs, so don't hold me to it. ;-)
I don't know what OSX does.


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


More information about the lazarus mailing list