I've been trying to modify the StrokeStyle
for the TDirect2DCanvas.Pen
in C++Builder.
The documentation says this about the property:
Determines the stroke style in which the pen draws lines.
Use StrokeStyle to specify a more complex style in which the lines are drawn. StrokeStyle accepts an interface that provides a set of methods, each returning a certain drawing option.
The documentation gives no examples. When I try to set this property to anything, I get a compile error saying "cannot write a property that has no write specifiers" (it looks like this property is only set up to read the StrokeStyle; even though the documentation seems to indicate otherwise).
My desire here is to get lines to be rendered with rounded ends rather than the flat ends that it seems to default to when using TDirect2DCanvas
. Does anybody know how to accomplish this?
I'm using C++Builder 10.2 and the clang compiler. I'm trying to use TDirect2DCanvas
rather than the regular TCanvas
because it can draw anti-aliased lines.