Class ImageUtils

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

public class ImageUtils
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    static boolean USE_MIPMAP  
  • Method Summary

    Modifier and Type Method Description
    static void depureTexture​(Texture texture, float limit)  
    static int getNextPowerOfTwo​(int fold)  
    static int getNextPowerOfTwoHW​(int fold)  
    static Texture getScreenShot()  
    static java.nio.ByteBuffer makeTransp​(java.nio.ByteBuffer data, int red, int green, int blue, int widthHW, int heightHW)  
    static java.nio.ByteBuffer makeTransp​(java.nio.ByteBuffer data, int red, int green, int blue, int alpha, int widthHW, int heightHW)  
    static void saveBmpImage​(Texture texture, java.lang.String path)  
    static void saveImage​(Texture texture, java.lang.String path, java.lang.String format)  
    static void saveJpgImage​(Texture texture, java.lang.String path)  
    static void savePngImage​(Texture texture, java.lang.String path)  
    static void setSmoothImageState​(boolean value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • USE_MIPMAP

      public static boolean USE_MIPMAP
  • 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 java.nio.ByteBuffer makeTransp​(java.nio.ByteBuffer data, int red, int green, int blue, int widthHW, int heightHW)
    • makeTransp

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

      public static void saveBmpImage​(Texture texture, java.lang.String path)
    • saveImage

      public static void saveImage​(Texture texture, java.lang.String path, java.lang.String format)
    • saveJpgImage

      public static void saveJpgImage​(Texture texture, java.lang.String path)
    • savePngImage

      public static void savePngImage​(Texture texture, java.lang.String path)
    • setSmoothImageState

      public static void setSmoothImageState​(boolean value)