Class ColorUtils
java.lang.Object
edu.jiangxin.apktoolbox.convert.color.ColorUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Color
cielab2Color
(int L, int a, int b) static int[]
cielabFloat2Int
(float[] value) static float[]
cielabInt2Float
(int[] value) static Color
cmyk2Color
(int cyanI, int magentaI, int yellowI, int keyI) static int[]
cmykFloat2Int
(float[] value) static float[]
cmykInt2Float
(int[] value) static int[]
color2Cielab
(Color color) static int[]
color2Cmyk
(Color color) static String
static int[]
static int[]
static Color
static Color
hsb2Color
(int hueI, int saturationI, int brightnessI) static int[]
hsbFloat2Int
(float[] value) static float[]
hsbInt2Float
(int[] value) static Color
hsl2Color
(int hueI, int saturationI, int lightnessI) static int[]
hslFloat2Int
(float[] value) static float[]
hslInt2Float
(int[] value) static int[]
rgbFloat2Int
(float[] value) static float[]
rgbInt2Float
(int[] value)
-
Constructor Details
-
ColorUtils
public ColorUtils()
-
-
Method Details
-
hex2Color
-
color2Hex
-
hsb2Color
-
color2Hsb
-
hsl2Color
-
color2Hsl
-
cmyk2Color
-
color2Cmyk
-
cielab2Color
-
color2Cielab
-
rgbInt2Float
public static float[] rgbInt2Float(int[] value) -
rgbFloat2Int
public static int[] rgbFloat2Int(float[] value) -
hsbFloat2Int
public static int[] hsbFloat2Int(float[] value) -
hsbInt2Float
public static float[] hsbInt2Float(int[] value) -
hslFloat2Int
public static int[] hslFloat2Int(float[] value) -
hslInt2Float
public static float[] hslInt2Float(int[] value) -
cmykFloat2Int
public static int[] cmykFloat2Int(float[] value) -
cmykInt2Float
public static float[] cmykInt2Float(int[] value) -
cielabFloat2Int
public static int[] cielabFloat2Int(float[] value) -
cielabInt2Float
public static float[] cielabInt2Float(int[] value)
-