# Start/endcap for lines

**URL:** <https://community.thinkgeo.com/t/start-endcap-for-lines/8337>\
**Category:** WPF\
**Created:** [December 20, 2016, 7:13pm UTC](https://community.thinkgeo.com/t/start-endcap-for-lines/8337 "2016-12-20T19:13:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jake](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@Jake](https://community.thinkgeo.com/u/Jake)\
**Post date:** [December 20, 2016, 7:13pm UTC](https://community.thinkgeo.com/t/start-endcap-for-lines/8337/1 "2016-12-20T19:13:37Z")

</div>

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?](https://community.thinkgeo.com/t/custom-arrow-line-style/5178/2) 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.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [December 21, 2016, 10:24am UTC](https://community.thinkgeo.com/t/start-endcap-for-lines/8337/2 "2016-12-21T10:24:19Z")

</div>

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
