Class Utils

java.lang.Object
org.oscim.utils.Utils

public final class Utils extends Object
  • Method Details

    • equals

      public static boolean equals(Object o1, Object o2)
      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

      public static Bitmap potBitmap(Bitmap bitmap)
      Returns a Bitmap with POT size, if Parameters.POT_TEXTURES is true. Else the returned Bitmap is the same instance of given Bitmap. If the given Bitmap has POT size, the given instance is returned.