缩放比例在Android的图片? [英] Scaling ratio in Android images?

查看:126
本文介绍了缩放比例在Android的图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个简单的信息系统,该系统将使用大量的图片。问题是我不知道如何将其扩展到LDPI,MDPI,华电国际和华电国际的文件夹。

I am developing a simple informative system which will use a lot of images. The problem is I do not know how to scale them to the folder of ldpi, mdpi, hdpi, and hdpi.

我读了Android使用像3的缩放比例:4:6:8。一些可以给我解释一下这是什么 3:4:6:8比例比?如何使用它,这是什么逻辑背后?

I read that android uses a scaling ratio like 3:4:6:8. Can some explain to me what is this 3:4:6:8 scaling ratio? How do I use it, and what is the logic behind it?

假设我在 LDPI 文件夹,一个50×50像素的图像。如果我要使用的 3:4:6:8的比例的。什么将是下一个图像大小为我的 MDPI 文件夹和华电国际文件夹?

Suppose I have a 50x50 px image in ldpi folder. If I am going to use 3:4:6:8 ratio. What will be the next image size for my mdpi folder and hdpi folder?

请帮忙。我真的不明白,缩放比率。对不起,这一点,我在Android的设计只是一个新手。

Please help. I dont realy understand that scaling ratio. Sorry for this, I'm only a newbie in android design.

推荐答案

他们大多使用这些标准尺寸:

Mostly they use these standard sizes:

LDPI:36 * 36 MDPI:48 * 48 华电国际:72 * 72 xhdpi:96 * 96

ldpi: 36*36 mdpi: 48*48 hdpi: 72*72 xhdpi: 96*96

这篇关于缩放比例在Android的图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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