Package org.oscim.utils
Class Utils
java.lang.Object
org.oscim.utils.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanNull safe equals.static TextureItemloadTexture(String relativePathPrefix, String src, XmlThemeResourceProvider resourceProvider, int width, int height, int percent) Load a texture from a specified location and optional dimensions.static BitmapReturns a Bitmap with POT size, ifParameters.POT_TEXTURESis true.
-
Method Details
-
equals
Null safe equals. -
loadTexture
public static TextureItem loadTexture(String relativePathPrefix, String src, XmlThemeResourceProvider resourceProvider, int width, int height, int percent) Load a texture from a specified location and optional dimensions. -
potBitmap
Returns a Bitmap with POT size, ifParameters.POT_TEXTURESis true. Else the returned Bitmap is the same instance of given Bitmap. If the given Bitmap has POT size, the given instance is returned.
-