在相机屏幕周围创建 100 X 100 框架

发布于 2024-12-09 20:19:49 字数 123 浏览 10 评论 0原文

我正在开发一个基于相机的应用程序。与直方图有关。当我打开应用程序时,它应该启动相机,并且应该在屏幕中央制作 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

相守太难 2024-12-16 20:19:49

如果您希望在相机图像顶部有一个 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文