[Gambas-user] Problem with Paint.Rectangle() and docu

Rolf-Werner Eilert rwe-sse at osnanet.de
Thu Sep 27 17:04:25 CEST 2018


Am 27.09.2018 um 16:55 schrieb Benoît Minisini:
> 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,
> 

Yes :) got it, I just forgot there is Stroke


Thank you!

Rolf


More information about the User mailing list