[Gambas-user] Paint.LineWidth question

Rolf-Werner Eilert eilert-sprachen at ...221...
Wed Sep 30 08:48:55 CEST 2015


This appears to be strange, though it might be just a misunderstanding.

       Paint.LineWidth = 1
       Paint.Color(Color.Black)
       Paint.MoveTo(x1, y1)
       Paint.LineTo(x2, y2)
       Paint.Fill()

should draw a line, and it does. Now, if I want a thicker line, I set 
LineWidth to... what? It is not documented.

I tried 2, I tried 10, I tried 100, but to no avail.

But maybe I misunderstand its function?

I used FillRect instead which does the same if you make it thin enough, 
but I would feel better if I knew how to handle the line.

Thanks for all insight!

Rolf





More information about the User mailing list