Reputation: 3339
In the Android documentation it's suggested that images should be scaled using the 3:4:6:8 scaling ratio, from ldpi to xhdpi.
And this post suggest that this has been expanded with 12 when xxhdpi was announced, so that the scaling ratio is 3:4:6:8:12 from ldpi to xxhdpi.
So accordingly this would be how you would scale graphics for Android:
Just want to be 100% sure that this is the correct way to scale on Android? It's puzzling to me that you have scale by different factors.
Upvotes: 3
Views: 92
Reputation: 43798
Yes that's correct. Note that if you go 2 steps, you will always have a scaling factor of 2. The reason for different factors is to make the factors in between nice rational numbers.
Rational scaling factors with small numerator and denominator help to reduce scaling artifacts due to aliasing.
Upvotes: 4