Package playn.core
Class Scale.ScaledResource
java.lang.Object
playn.core.Scale.ScaledResource
- Enclosing class:
Scale
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
scale
The scale factor for this resource. -
path
The path to the resource, including any scale factor annotation. If the scale is one, the image path is unadjusted. If the scale is different than one, the scale is tacked onto the image path (before the extension). The scale factor will be converted to an integer per the following examples:- Scale factor 2:
foo.png
becomesfoo@2x.png
- Scale factor 4:
foo.png
becomesfoo@4x.png
- Scale factor 1.5:
foo.png
becomesfoo@15x.png
- Scale factor 1.25:
foo.png
becomesfoo@13x.png
- Scale factor 0.75:
foo.png
becomesfoo@08x.png
- Scale factor 2:
-
-
Constructor Details
-
ScaledResource
-
-
Method Details