简体   繁体   English

Android-适用于应用程序性能和质量的最佳图像尺寸

[英]Android - Optimum Image Size for App Performance and Quality

I want to know what would be the optimum size of the each png image file in the application? 我想知道应用程序中每个png图像文件的最佳大小是多少?

By the time I complete the game application I assume that there will be more than 50 .png images included 当我完成游戏应用程序时,我认为其中将包含50多个.png图像

in the application. 在应用程序中。 I want each png image to be of high quality and maximize performance of the 我希望每个png图像都是高质量的,并最大限度地提高

application (I do not want any lag spike in my game application..). 应用程序(我不想在我的游戏应用程序中出现任何延迟。)。

Is there any quick approach to find the optimum image size? 是否有任何快速方法来找到最佳图像尺寸?

Thanks in advance! 提前致谢!

Not really possible to know an optimum size, but for sprites for a game, as it sounds like you want, you might try a sprite sheet. 确实不可能知道最佳尺寸,但是对于游戏的精灵,听起来像您想要的,您可以尝试精灵表。 This question has a bit more information. 这个问题有更多信息。 Spritesheet programmatically cutting: best practices 以编程方式切割Spritesheet:最佳做法

If you don't want to go through that, try just compressing your images as much as possible either using jpg compression, or a service like http://www.tinypng.org 如果您不想这样做,请尝试使用jpg压缩或http://www.tinypng.org之类的服务尽可能多地压缩图像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM