Android的最大图像/纹理分辨率 [英] Android max image/texture resolution

查看:120
本文介绍了Android的最大图像/纹理分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个快速谷歌搜索,但我无法找到Android的最大图像/纹理分辨率。我目前有崩溃的图像,但是当我降低分辨率它的作品。我不想只是试错的决议,看看它是否工作,表现出局限性一些固体的数字将是理想的。

I did a quick google search, but I couldn't find the max image/texture resolution for android. I currently have an image that is crashing , but when I lower the resolution it works. I dont want to just trial and error the resolutions to see if it works, some solid numbers showing limitations would be ideal.

到Android文档的链接将被罚款以及。我个人并不觉得直观。

A link to the android documentation would be fine as well. I personally don't find it intuitive.

推荐答案

如果它失败在一个较高的分辨率,但分辨率较低的作品,这听起来好像你可能会创下了内存限制。

If it fails at a high resolution but works with a lower resolution, it sounds to me like you might be hitting a memory limit.

有一个在这个职位上影像存储成本

1200 dpi - 7200x4800  (34,560,000 pixels)  - 103,680,000 bytes (99 MB)
2400 dpi - 14400x9600 (138,240,000 pixels) - 414,720,000 bytes (396 MB)

如果你是推到130万像素的范围内,你超过你(公平)内存消耗,至少在今天的大多数手机硬件。

If you are pushing into the range of 130 million pixels, you are well over on your (fair) memory consumption, at least on most of today's mobile hardware.

更新

下面是另一篇文章讨论有关照片和内存

Here is another post discussing issues related to photos and memory

这篇关于Android的最大图像/纹理分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆