# Set flag for vertical flip

**URL:** <https://forums.imgtec.com/t/set-flag-for-vertical-flip/2284>\
**Category:** PowerVR Insider\
**Created:** [April 15, 2015, 12:05am UTC](https://forums.imgtec.com/t/set-flag-for-vertical-flip/2284 "2015-04-15T00:05:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anoopar](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@anoopar](https://forums.imgtec.com/u/anoopar)\
**Post date:** [April 15, 2015, 12:05am UTC](https://forums.imgtec.com/t/set-flag-for-vertical-flip/2284/1 "2015-04-15T00:05:20Z")

</div>

Hello,

I want to save the texture using saveFileLegacyPVR and need to set the flag for vertical flip also.  
Is there any way to set the vertical flip flag?

Thanks,  
Anoop

---

<div class="post-metadata">

**Author:** ![PaulLy](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@PaulLy](https://forums.imgtec.com/u/PaulLy)\
**Post date:** [April 15, 2015, 9:20am UTC](https://forums.imgtec.com/t/set-flag-for-vertical-flip/2284/2 "2015-04-15T09:20:48Z")

</div>

In PVR file metadata the fourCC PVR3, key 3, is a set of three byte values that define the orientation of the texture data. The second value represents the Y axis, so flipping this value will invert the data vertically.

For more detail, please see the PVR file format specification in the documentation included in the PowerVR SDK.

---

<div class="post-metadata">

**Author:** ![anoopar](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@anoopar](https://forums.imgtec.com/u/anoopar)\
**Post date:** [April 16, 2015, 1:48am UTC](https://forums.imgtec.com/t/set-flag-for-vertical-flip/2284/3 "2015-04-16T01:48:55Z")

</div>

Thanks it worked by setting the MetaData.

---

<div class="post-metadata">

**Author:** ![anoopar](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@anoopar](https://forums.imgtec.com/u/anoopar)\
**Post date:** [April 17, 2015, 12:52am UTC](https://forums.imgtec.com/t/set-flag-for-vertical-flip/2284/4 "2015-04-17T00:52:28Z")

</div>

By using the setOrientation(ePVRTOrientUp) also I get the same result. May be internally it is doing the same by setting the MetaData. Is it right?
