Class ImageUtils

java.lang.Object
zombie.core.utils.ImageUtils

public class ImageUtils extends Object
  • Field Details

    • useMipmap

      public static boolean useMipmap
  • Method Details

    • depureTexture

      public static void depureTexture(Texture texture, float limit)
    • getNextPowerOfTwo

      public static int getNextPowerOfTwo(int fold)
    • getNextPowerOfTwoHW

      public static int getNextPowerOfTwoHW(int fold)
    • getScreenShot

      public static Texture getScreenShot()
    • makeTransp

      public static ByteBuffer makeTransp(ByteBuffer data, int red, int green, int blue, int widthHW, int heightHW)
    • makeTransp

      public static ByteBuffer makeTransp(ByteBuffer data, int red, int green, int blue, int alpha, int widthHW, int heightHW)
    • saveBmpImage

      public static void saveBmpImage(Texture texture, String path)
    • saveImage

      public static void saveImage(Texture texture, String path, String format)
    • saveJpgImage

      public static void saveJpgImage(Texture texture, String path)
    • savePngImage

      public static void savePngImage(Texture texture, String path)