Android 最大图像/纹理分辨率
我快速进行了谷歌搜索,但找不到 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.
A link to the android documentation would be fine as well. I personally don't find it intuitive.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果它在高分辨率下失败,但在较低分辨率下工作,在我看来,您可能会遇到内存限制。
请查看这篇关于图像内存成本的文章
如果您要进入 1.3 亿的范围, 像素,你的(公平)内存消耗已经远远超过了,至少在当今的大多数移动硬件上是这样。
更新
这是另一篇讨论与照片和内存相关的问题的帖子
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.
Have a look at this post on Image memory cost
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.
UPDATE
Here is another post discussing issues related to photos and memory