Class ImageUtils
java.lang.Object
zombie.core.utils.ImageUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddepureTexture(Texture texture, float limit) static intgetNextPowerOfTwo(int fold) static intgetNextPowerOfTwoHW(int fold) static Texturestatic ByteBuffermakeTransp(ByteBuffer data, int red, int green, int blue, int widthHW, int heightHW) static ByteBuffermakeTransp(ByteBuffer data, int red, int green, int blue, int alpha, int widthHW, int heightHW) static voidsaveBmpImage(Texture texture, String path) static voidstatic voidsaveJpgImage(Texture texture, String path) static voidsavePngImage(Texture texture, String path)
-
Field Details
-
useMipmap
public static boolean useMipmap
-
-
Method Details
-
depureTexture
-
getNextPowerOfTwo
public static int getNextPowerOfTwo(int fold) -
getNextPowerOfTwoHW
public static int getNextPowerOfTwoHW(int fold) -
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
-
saveImage
-
saveJpgImage
-
savePngImage
-