在相机屏幕周围创建 100 X 100 框架
我正在开发一个基于相机的应用程序。与直方图有关。当我打开应用程序时,它应该启动相机,并且应该在屏幕中央制作 100 x 100 的框架。 相机开始在屏幕上显示图像,但我不知道如何在屏幕中心周围制作框架。
请指导我。
I am working on a camera based app. It is related to histogram. When I open up the app it should start the camera and it should make frame of 100 x 100 in the center of the screen.
The camera starts showing the images on screen but I don't know how to make frame around the center of the screen.
Please guide me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您希望在相机图像顶部有一个 100x100 的框架,那么只需在具有透明背景的 png 图像中创建一个 100x100 的框架即可。使用 100x100 frame.png 创建 UIImageView 并将该视图添加到相机视图中
If you want a 100x100 frame on top of the camera image then just create a 100x100 frame in a png image with transparent background. Create a UIImageView with your 100x100 frame.png and add that view to your camera view