gpt4 book ai didi

Android 纹理看起来不清楚/模糊

转载 作者:行者123 更新时间:2023-11-29 22:31:07 29 4
gpt4 key购买 nike

我无法在我的应用程序中正确渲染我的纹理。我使用的艺术品是精确的,并且已经缩放且尺寸合适,但是当我在手机上渲染它时,我的纹理突然不如原始艺术品清晰/精确,我不明白为什么。

有人遇到过这个问题吗?

最佳答案

这是因为android会压缩所有没有放在/res/raw/里面的资源

http://developer.android.com/guide/topics/graphics/2d-graphics.html

Note: Image resources placed in res/drawable/ may be automatically optimized with lossless image compression by the aapt tool. For example, a true-color PNG that does not require more than 256 colors may be converted to an 8-bit PNG with a color palette. This will result in an image of equal quality but which requires less memory. So be aware that the image binaries placed in this directory can change during the build. If you plan on reading an image as a bit stream in order to convert it to a bitmap, put your images in the res/raw/ folder instead, where they will not be optimized.

关于Android 纹理看起来不清楚/模糊,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3986188/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com