Three20 图片库 - 显示超大图像,然后聚焦
我已经使用 Three20 框架在我的 iPhone 应用程序中设置了一个图像库。我发送每个图像的具体宽度和高度,但是当我查看各个图像时,它们加载的尺寸稍大,它们有点像素化,然后它们聚焦到正确的尺寸/比例。
大多数图像都是 300 x 400,我发送的是 300 x 400 以及宽度和高度,因此当我以横向模式查看时,我希望图像看起来比整个屏幕小,或者放大以填充屏幕。
有什么想法为什么我得到的图像在完全加载后尺寸会缩小吗?
I have used the Three20 Framework to setup an image gallery in my iPhone App. I am sending in the specific width and height for each image, but when I view the individual images, they load at a slightly oversized size, they are a bit pixelated, and then they focus down to the correct size/ratio.
Most of the images are 300 x 400 and I am sending in 300 x 400 and the width and height, so when I view in landscape mode, I would expect the images to appear smaller than the overall screen, or to size-up to fill the screen.
Any ideas why I am getting larger images that size-down after they are fully loaded?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您处于横向模式并通过 300x400,那么它会以 300x400 的分辨率加载图像,然后在完全加载后缩放到横向(最大可能为 480x300)(因此控制器从图像本身知道其大小)。
if you are in landscape and passing 300x400, then it loads the image at 300x400 then does the scale to landscape (which is 480x300 max possible) after it has loaded completely (and therefore the controller knows its size from the image itself).