# How to rotate a pointshape w/ a set Image

**URL:** <https://community.thinkgeo.com/t/how-to-rotate-a-pointshape-w-a-set-image/8751>\
**Category:** WPF\
**Created:** [November 28, 2017, 3:54pm UTC](https://community.thinkgeo.com/t/how-to-rotate-a-pointshape-w-a-set-image/8751 "2017-11-28T15:54:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [November 28, 2017, 3:54pm UTC](https://community.thinkgeo.com/t/how-to-rotate-a-pointshape-w-a-set-image/8751/1 "2017-11-28T15:54:45Z")

</div>

I currently have an InMemoryFeatureLayer who’s default point style is a .png. I then made a new PointShape and added it to the layer. This works fine, but now I’m trying to rotate it constantly (it will rotate to a designated heading).

I’ve tried the following:

```
pointShape.Rotate(pointShape.GetCenterPoint(), 90);

bitmapLayer.Open();
bitmapLayer.EditTools.BeginTransaction();
bitmapLayer.EditTools.Update(pointShape);
bitmapLayer.EditTools.CommitTransaction();
bitmapLayer.Close();

```

This has no effect on the image being rotated though. Any help would be great!

bitmapLayer is the layer where pointShape is held.

Thanks!

---

<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:** [November 29, 2017, 5:14am UTC](https://community.thinkgeo.com/t/how-to-rotate-a-pointshape-w-a-set-image/8751/2 "2017-11-29T05:14:44Z")

</div>

Hi Dan,

The point shape is a point, which don’t have the direction.

So what you need is rotate the point style.

You can set pointStyle.RotationAngle for it.

Please refer this post: [PointStyle + RotationAngle?](https://community.thinkgeo.com/t/pointstyle-rotationangle/6123)

Regards,

Ethan

---

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [November 29, 2017, 1:53pm UTC](https://community.thinkgeo.com/t/how-to-rotate-a-pointshape-w-a-set-image/8751/3 "2017-11-29T13:53:48Z")

</div>

Oh I see, thank you! Works fine now.

---

<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:** [November 30, 2017, 1:26am UTC](https://community.thinkgeo.com/t/how-to-rotate-a-pointshape-w-a-set-image/8751/4 "2017-11-30T01:26:11Z")

</div>

Hi Dan,

I am glad to hear that’s helpful.

Regards,

Ethan
