开发者

UIImage orientation problem

开发者 https://www.devze.com 2022-12-20 23:04 出处:网络
Is there a way to set manually th开发者_开发技巧e orientation of UIImage? Or create with orientation or somehow?

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

精彩评论

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

关注公众号