LoginSignup
13

More than 5 years have passed since last update.

解像度毎に適切なサイズを算出する

Posted at

解像度にあったサイズを割り出すには下記の比率を覚えておくと便利。

3:4:6:8

(左から ldpi, mdpi, hdpi, xhdpi)
mdpiで100pxの画像をhdpiで同じ見た目に仕上げたい場合は
  4:6=100:x ⇒ x=150
となり、150pxの画像を用意すれば良いことになります。
参考:http://yuki312.blogspot.jp/2012/02/blog-post.html

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13