开发者

UIImage orientation problem

Is there a way to set manually th开发者_开发技巧e orientation of UIImage? Or create with orientation or somehow?

Thanks!


This is a pretty esoteric thing to want to do. Are you sure there isn't a simpler way to do what you want? (Such as modifying the transform property on the UIImageView showing the image.)

To make sure the UIImage had a particular orientation, you'd have to fiddle with the Exif tags before loading the picture. Open the file, modify the tags, save it, then read it. You can check out the iphone-exif library for inspiration, but probably need to expand on it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜