# Rotate an image

**URL:** <https://forum.commonvisionblox.com/t/rotate-an-image/70>\
**Category:** Programming Questions\
**Tags:** transformation\
**Created:** [May 12, 2017, 7:38am UTC](https://forum.commonvisionblox.com/t/rotate-an-image/70 "2017-05-12T07:38:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Frank](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/frank/32/42_2.png) [@Frank](https://forum.commonvisionblox.com/u/Frank)\
**Post date:** [May 12, 2017, 1:43pm UTC](https://forum.commonvisionblox.com/t/rotate-an-image/70/2 "2017-05-12T13:43:55Z")

</div>

If you are using one of our VIN drivers, you can simply rotate the image by changing a value in the INI-file for the VIN.

Those INI-Files contain the parameter RotateImage which may take the values

0: Rotate 0 degrees  
1: Rotate 90 degrees  
2: Rotate 180 degrees  
3: Rotate 270 degrees

For further information take a look at the specific CVB Driver User Guide for the image acquisition device you use.

* * *

That said, this approach changes the rotation for the whole acquisition process. If you only want to rotate a single image, you can also use general functions in CVB for rotating images like _CreateMatrixTransformedImage_, _CreateMatrixTransformedImageEx_ and _RotateImage_. But those functions take “a long time” to perform. So, if you would do it for every image acquired it might slow down your whole acquisition where the image rotation via the VIN takes virtual no time at all. 🙂

---

_[View the full topic](https://forum.commonvisionblox.com/t/rotate-an-image/70)._
