ThinkGeo.com    |     Documentation    |     Premium Support

Start/endcap for lines

I am trying to set lines start and endcap using the inner and outer GeoPens attributes. My lines are set to inner pen width 2 and outer pen width 3. At these values, the linecaps are nearly invisible. How do I set the size of the linecaps so they show up on the drawing for thin lines? The example Custom arrow line style? the linestyle has a pen width of 14, which is too large for my purposes.

What I would like to do is set the size of my arrows to 8, line size to 2.

Hi Jake,

I think to use our default ArrowAnchor you cannot custom the size, the line and the arrow should keep the same ratio here, because that’s a default style for Gdi+.

I think if you want to implement that, as below maybe the solution:

  1. Draw a triangle at the end of the line. But you need calculate the line direction and rotation the triangle angle.
  2. Directly draw a arrow by GDI+ API, you can implement your custom line style for that.

Regards,

Don