裁剪壁纸以获得清晰的图像
我目前正在开发壁纸应用程序。有没有办法让位图在设置为壁纸后看起来不那么模糊且更清晰? 是否只需要裁剪图片并调整其大小以完美适合屏幕尺寸,或者还有其他方法吗?
PS 我读到应用程序壁纸设置和保存一旦启动就能够提供非常优质的壁纸!
I am currently working on a wallpaper application. Is there a way to make a bitmap look less blurry and more crisp once it is set as a wallpaper?
Does it just require cropping the picture and resizing it to fit the size of the screen perfectly, or there is some other way?
P.S. I read that the application wallpaper set and save is able to deliver very good quality wallpapers once launched!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将位图保存在哪里?尝试将其放置在
/res/raw
中,而不是/res/drawable
这可以防止 android 优化图像文件,并且应该使其更清晰。Where are you saving the bitmap? Try placing it in
/res/raw
as opposed to/res/drawable
This prevents android from optimizing the image file, and should make it crisper.