如何缩放基于视图的 iPhone 应用程序的一部分?

发布于 2024-09-06 11:48:18 字数 160 浏览 0 评论 0原文

我正在使用 iPhone SDK 3.2。我在一个小城市的类似道路的 UIView 上画了一些线,并将其作为子视图添加到主视图窗口(控制器视图)中。现在我需要从不同的角度对其进行缩放,例如该城市的更具体的咏叹调。

仅供参考:我是 Obj-C 以及 iPhone 应用程序开发方面的新程序员。

I am using iPhone SDK 3.2. I have drawn some lines on an UIView like road on a small city and added that as subview to the main view window(controller view). Now I need to zoom it from different point of view like a more specific aria of that city.

FYI: I am a new programmer in Obj-C as well iPhone app development.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

左秋 2024-09-13 11:48:18

谢谢你的信息。我想我需要问的问题是:线条和背景颜色会出现在图像中还是会被绘制为线条和颜色。线条和颜色的图像将是一个过程,而线条和颜色将是另一过程。

如果您追求线条和色彩路线,那么请查看核心图形(CG)。它将为您提供在屏幕上放置线条并用颜色填充它们的工具。从那里您需要计算数学以使它们看起来缩放。

或者查看 OpenGL。它将为您提供创建允许缩放的 3D 环境的工具。
http://iphonedevelopment.blogspot。 com/2009/05/opengl-es-from-ground-up-table-of.html

祝你好运

thanks for the info. I guess the question that I need to ask is this: will the lines and background color be in an image or will they be drawn as lines and color. An images of lines and color would be one process and lines and color would be another process.

If you are going for the lines and color route then have a look into Core Graphics (CG). It will give you the tools to put lines on the screen and fill them with color. From there you will need to calculate the math to make them appear to zoom.

Alternatively look into OpenGL. It will provide you with the tools to create a 3D environment that will allow you to zoom.
http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-table-of.html

Good luck

云归处 2024-09-13 11:48:18

不幸的是,我无法回答这个问题,但您需要更多信息才能得到这个问题的答案

1) 您需要图像保持清晰吗?

2)您缩放的原始图像是照片还是圆形、方形和文字等形状?

3)如果是照片,那么分辨率是否高于屏幕的分辨率(高分辨率照片)

I can't answer this one unfortunately but you will need a little more information to get an answer this one

1) do you need the image to stay sharp?

2) is the original image that you are zooming a photograph or shapes like circles, squares and type?

3) if it is a photograph then is the resolution higher then the resolution of the screen (hi res photo)

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