DaveS
(DaveS)
July 5, 2019, 10:13pm
1
seems the WebGraphics object has a LineCap property to allow Round / Square or Butt ends.
Is there a declare or something to apply that to the normal Picture/Canvas Graphics object?
(for both macOS and Windows?
Trying to draw a thick line between two rectangles looks wrong, because the default seems to be a Round linecap
And I don’t have the option of drawing the lines first and then using the Rectangle to “cut them off”
Using DrawLine ? No
And I dont believe any of the Object2D shapes support that either
DaveS
(DaveS)
July 5, 2019, 11:34pm
3
barring a declare solution,
I have implemented a VLine and Hline methods that reset the PenWidth to 1 and draw the required number of lines… this does give a “butt” end… but obviously is a bit slower
AlbertoD
(AlbertoD)
July 5, 2019, 11:41pm
4
If you want a VLine or HLine, can’t you use a Rectangle instead of multiple lines?
DaveS
(DaveS)
July 5, 2019, 11:43pm
5
yeah actually I could… just didn’t think about that… good idea…
FYI… this forum seems to censor “B” “U” “T” “T” which is a perfectly acceptable linecap term