简体   繁体   English

如何在iOS上的UIImagePicker中获取实际图像帧的大小?

[英]How to get the size of the actual image frame inside UIImagePicker on iOS?

I am implementing a kind of "augmented reality" app which has to add guide to the user on the image being taken. 我正在实现一种“增强现实”应用程序,该应用程序必须向用户添加有关所拍摄图像的指南。 In order to do this camerOverlayView is used. 为此,使用camerOverlayView The problem is that I have to place the guide on the image too. 问题是我也必须将指南放在图像上。 For that I need the size and the position of actual image on the UIImagePickerController . 为此,我需要UIImagePickerController上实际图像的大小和位置。 Where can it be found from? 在哪里可以找到? 在此处输入图片说明

For iPhone 4: 5.0 MP (2592 x 1936) - Frame : (0.0, 0.0, 2592.0, 1936.0) 对于iPhone 4:5.0 MP(2592 x 1936)-帧:(0.0,0.0,2592.0,1936.0)

For iPhone 5: 8.0 MP (3264 x 2448) - Frame : (0.0, 0.0, 3264.0, 2448.0) 对于iPhone 5:8.0 MP(3264 x 2448)-帧:(0.0,0.0,3264.0,2448.0)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用UIImagePicker获取图像名称? 我得到了图像名称,但它仅在模拟器中有效,而在实际设备中无效 - How to get image name using UIImagePicker? I got image name but its working only in simulators not in actual devices 如何在iOS中获取uiimagepicker微调按钮动作? - How to get uiimagepicker Spinner button action in iOS? 如何获取UIImagePicker选定的图像名称? - How to get UIImagePicker selected image name? Unabe使用模拟器从iOS中的UIImagePicker获取图像路径和图像? - Unabe to get image path & image from UIImagePicker in ios using simulator? 如何在iOS的某些文件输入字段上通过UIWebView中的UIImagePicker选择图像? - How do I get image selected by UIImagePicker in UIWebView on certain file input field in iOS? 从NSURL UIImagepicker Controller iOS 9获取图像名称 - Get the image name from NSURL UIImagepicker Controller iOS 9 如何获取从UIimagePicker拍摄的视频的大小? - How can I get the size of the video that is taken from UIimagePicker? 如何让UIImagePicker相机的自定义叠加在iOS 7中全屏显示? - How to get the custom overlay for UIImagePicker camera to be full screen in iOS 7? iOS根据设备屏幕尺寸从Assets获取图像的实际尺寸 - iOS get actual size of image from Assets based on device screen size 如何在相机内部呈现UIImagePicker - how to present an UIImagePicker inside the camera
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM