For example, I have a 100*100 size imageview or button, and I want to set its image or backgroundImage with a local .png file. Based o
100*100
backgroundImage
.png
For @3x image increase @1x image size by 3 times!
@3x
@1x
e.g.
15 x 15 = @1x
30 x 30 = @2x
@2x
45 x 45 = @3x
OR
100 x 100 = @1x
200 x 200 = @2x
300 x 300 = @3x
15 x 10 = @1x
30 x 20 = @2x
45 x 30 = @3x
I hope this is helpful to you!