在大型自定义视图中快速绘图(Fast drawing in large

编程入门 行业动态 更新时间:2024-10-27 09:45:07
在大型自定义视图中快速绘图(Fast drawing in large-sized custom view)

我正在为iPhone开发钢琴应用程序。 我想开发流畅的可滚动键盘(如音乐采样器)。

我在UIScrollView中放置了一个自定义视图(1440px x 120px)。 我想使用OpenGL因为Quartz太慢了。 但我无法在1440px中制作OpenGL视图。

想要制作更快,更大尺寸的自定义视图吗?

谢谢。

I'm developing Piano App for iPhone. I'd like to develop smooth-scrollable keyboard (like Music Sampler).

I put a custom view(1440px x 120px) in UIScrollView. I wanted to use OpenGL because Quartz is too slow. But I couldn't make OpenGL view in 1440px.

Any idea to make a faster & large-sized custom view?

Thank you.

最满意答案

UIView任何实例的最大大小为1024x1024。 如果是OpenGL则无关紧要。 您可以使用大于该值的可滚动区域,但您必须从多个平铺视图构建它。

Any instance of UIView has a maximum size of 1024x1024. Doesn't matter if it is OpenGL or not. You can have a scrollable area larger than that, but you will have to build it from multiple tiled views.

更多推荐

本文发布于:2023-07-27 17:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1293538.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   视图   快速   large   drawing

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!