[Gambas-user] Problem with Paint.Rectangle() and docu
Benoît Minisini
g4mba5 at gmail.com
Thu Sep 27 16:55:01 CEST 2018
Le 27/09/2018 à 15:44, Rolf-Werner Eilert a écrit :
> In the documentation to Paint.Rectangle there is
>
> This function is logically equivalent to:
> Paint.MoveTo(X, Y)
> Paint.LineTo(X + Width, Y)
> Paint.LineTo(X + Width, Y + Height)
> Paint.LineTo(X, Y + Height)
> Paint.ClosePath()
>
> The thing is, Paint.Rectangle will always fill the area, and I simply
> need a box (unfilled).
>
No, Paint.Rectangle() draws nothing, it defines a drawing path.
The drawing is done by the Paint.Fill() and Paint.Stroke() commands,
depending on whether you want to fill the shape or outline it.
Regards,
--
Benoît Minisini
More information about the User
mailing list