[英]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.