Really hope you can help on this one been bugging me all day

Is it possible to keep the orienation of a UIImage (Say Landscape) but rotate the Image inside?

I save my UIImage using the following Code

```
[UIImagePNGRepresentation(image) writeToFile:pngPath atomically:YES];

```

where image is a UIImage.

The picture below shows what gets saved depending on the orientation of the device.

the bottom 4 is what I am Trying to achieve

![Orientation Image](https://i.stack.imgur.com/q5o1U.jpg)

Basically I am trying to get the pictue to be on its side in landscape mode no matter which way you turn the device

Any help is appreciated

Mark