Package zombie.core.utils
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 booleanUSE_MIPMAP -
Method Summary
Modifier and Type Method Description static voiddepureTexture(Texture texture, float limit)static intgetNextPowerOfTwo(int fold)static intgetNextPowerOfTwoHW(int fold)static TexturegetScreenShot()static java.nio.ByteBuffermakeTransp(java.nio.ByteBuffer data, int red, int green, int blue, int widthHW, int heightHW)static java.nio.ByteBuffermakeTransp(java.nio.ByteBuffer data, int red, int green, int blue, int alpha, int widthHW, int heightHW)static voidsaveBmpImage(Texture texture, java.lang.String path)static voidsaveImage(Texture texture, java.lang.String path, java.lang.String format)static voidsaveJpgImage(Texture texture, java.lang.String path)static voidsavePngImage(Texture texture, java.lang.String path)static voidsetSmoothImageState(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
-
getNextPowerOfTwo
public static int getNextPowerOfTwo(int fold) -
getNextPowerOfTwoHW
public static int getNextPowerOfTwoHW(int fold) -
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
-
saveImage
-
saveJpgImage
-
savePngImage
-
setSmoothImageState
public static void setSmoothImageState(boolean value)
-