Package panamagl.utils
Class ByteUtils
java.lang.Object
panamagl.utils.ByteUtils
A ByteBuffer helping to convert colors to byte, int, float representation.
- Author:
- Martin Pernollet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatBtoF(byte x) static intBtoI(byte x) static intFtoI(float x) static float[]IntARGBtoRGBAf(int i) static int[]IntARGBtoRGBAi(int i) static int[]IntARGBtoRGBi(int i) static intItoA(int x) static intItoB(int x) static floatItoF(int x) static intItoG(int x) static intItoR(int x) static float[]ItoRGBf(int i) static intRGBAtoIntARGB(byte r, byte g, byte b, byte a) static intRGBAtoIntARGB(float r, float g, float b, float a) static intRGBAtoIntARGB(int r, int g, int b, int a) static intStoI(short x)
-
Constructor Details
-
ByteUtils
public ByteUtils()
-
-
Method Details
-
BtoI
public static int BtoI(byte x) -
StoI
public static int StoI(short x) -
FtoI
public static int FtoI(float x) -
BtoF
public static float BtoF(byte x) -
ItoF
public static float ItoF(int x) -
ItoR
public static int ItoR(int x) -
ItoG
public static int ItoG(int x) -
ItoB
public static int ItoB(int x) -
ItoA
public static int ItoA(int x) -
RGBAtoIntARGB
public static int RGBAtoIntARGB(byte r, byte g, byte b, byte a) -
RGBAtoIntARGB
public static int RGBAtoIntARGB(int r, int g, int b, int a) -
RGBAtoIntARGB
public static int RGBAtoIntARGB(float r, float g, float b, float a) -
IntARGBtoRGBAi
public static int[] IntARGBtoRGBAi(int i) -
IntARGBtoRGBAf
public static float[] IntARGBtoRGBAf(int i) -
IntARGBtoRGBi
public static int[] IntARGBtoRGBi(int i) -
ItoRGBf
public static float[] ItoRGBf(int i)
-