RawColorHelper

Inheritance: java.lang.Object

public class RawColorHelper

Raw Color Helper Class helps to create RawColor faster, using predefined channel metadata

Constructors

ConstructorDescription
RawColorHelper()

Methods

MethodDescription
createArgb16BitColor(int a, int r, int g, int b)Creates a 16-bit per channel ARGB color.
createArgb8BitColor(byte a, byte r, byte g, byte b)Creates an 8-bit per channel ARGB color.
createArgb8BitColor(Color drawingColor)Creates an 8-bit per channel ARGB color from Drawing.Color
createCmyk16BitBitColor(int c, int m, int y, int k)Creates a 16-bit per channel CMYK color.
createCmyk8BitColor(byte c, byte m, byte y, byte k)Creates an 8-bit per channel CMYK color.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

RawColorHelper()

public RawColorHelper()

createArgb16BitColor(int a, int r, int g, int b)

public static RawColor createArgb16BitColor(int a, int r, int g, int b)

Creates a 16-bit per channel ARGB color.

Parameters:

ParameterTypeDescription
aintThe alpha component value (0-65535).
rintThe red component value (0-65535).
gintThe green component value (0-65535).
bintThe blue component value (0-65535).

The color components are packed into a 64-bit integer in the order: alpha (bits 48-63), red (bits 32-47), green (bits 16-31), and blue (bits 0-15). |

Returns: RawColor - A new RawColor instance representing the ARGB color.

createArgb8BitColor(byte a, byte r, byte g, byte b)

public static RawColor createArgb8BitColor(byte a, byte r, byte g, byte b)

Creates an 8-bit per channel ARGB color.

Parameters:

ParameterTypeDescription
abyteThe alpha component value (0-255).
rbyteThe red component value (0-255).
gbyteThe green component value (0-255).
bbyteThe blue component value (0-255).

The color components are packed into a 32-bit integer in the order: alpha (bits 24-31), red (bits 16-23), green (bits 8-15), and blue (bits 0-7). |

Returns: RawColor - A new RawColor instance representing the ARGB color.

createArgb8BitColor(Color drawingColor)

public static RawColor createArgb8BitColor(Color drawingColor)

Creates an 8-bit per channel ARGB color from Drawing.Color

Parameters:

ParameterTypeDescription
drawingColorColorThe System.Drawing Color

The color components are packed into a 32-bit integer in the order: alpha (bits 24-31), red (bits 16-23), green (bits 8-15), and blue (bits 0-7). |

Returns: RawColor - A new RawColor instance representing the ARGB color.

createCmyk16BitBitColor(int c, int m, int y, int k)

public static RawColor createCmyk16BitBitColor(int c, int m, int y, int k)

Creates a 16-bit per channel CMYK color.

Parameters:

ParameterTypeDescription
cintThe cyan component value (0-65535).
mintThe magenta component value (0-65535).
yintThe yellow component value (0-65535).
kintThe key (black) component value (0-65535).

The color components are packed into a 64-bit integer in the order: cyan (bits 48-63), magenta (bits 32-47), yellow (bits 16-31), and key/black (bits 0-15). |

Returns: RawColor - A new RawColor instance representing the CMYK color.

createCmyk8BitColor(byte c, byte m, byte y, byte k)

public static RawColor createCmyk8BitColor(byte c, byte m, byte y, byte k)

Creates an 8-bit per channel CMYK color.

Parameters:

ParameterTypeDescription
cbyteThe cyan component value (0-255).
mbyteThe magenta component value (0-255).
ybyteThe yellow component value (0-255).
kbyteThe key (black) component value (0-255).

The color components are packed into a 32-bit integer in the order: cyan (bits 24-31), magenta (bits 16-23), yellow (bits 8-15), and key/black (bits 0-7). |

Returns: RawColor - A new RawColor instance representing the CMYK color.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int