ColorantRgb

Inheritance: java.lang.Object, com.aspose.psd.xmp.types.XmpTypeBase, com.aspose.psd.xmp.types.complex.ComplexTypeBase, com.aspose.psd.xmp.types.complex.colorant.ColorantBase

public final class ColorantRgb extends ColorantBase

Represents RGB Colorant.

Constructors

ConstructorDescription
ColorantRgb()Initializes a new instance of the ColorantRgb class.
ColorantRgb(byte red, byte green, byte blue)Initializes a new instance of the ColorantRgb class.

Methods

MethodDescription
add(String key, Object value)Adds the specified key.
equals(Object arg0)
getBlue()Gets or sets the blue component value.
getClass()
getColorType()Gets or sets the type of the color.
getGreen()Gets or sets the green component value.
getMode()Gets ColorMode .
getNamespaceUri()Gets the default namespace URI.
getPrefix()Gets the prefix.
getRed()Gets or sets the red component value.
getSwatchName()Gets or sets the name of the swatch.
getXmpRepresentation()Gets the string contained value in XMP format.
hashCode()
notify()
notifyAll()
setBlue(byte value)Gets or sets the blue component value.
setColorType(int value)Gets or sets the type of the color.
setGreen(byte value)Gets or sets the green component value.
setRed(byte value)Gets or sets the red component value.
setSwatchName(String value)Gets or sets the name of the swatch.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ColorantRgb()

public ColorantRgb()

Initializes a new instance of the ColorantRgb class.

ColorantRgb(byte red, byte green, byte blue)

public ColorantRgb(byte red, byte green, byte blue)

Initializes a new instance of the ColorantRgb class.

Parameters:

ParameterTypeDescription
redbyteThe red component value.
greenbyteThe green component value.
bluebyteThe blue component value.

add(String key, Object value)

public void add(String key, Object value)

Adds the specified key.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe string representation of key that is identified with added value.
valuejava.lang.ObjectThe value to add to.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getBlue()

public byte getBlue()

Gets or sets the blue component value.

Value: The blue component value.

Returns: byte

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColorType()

public int getColorType()

Gets or sets the type of the color.

Value: The type of the color.

Returns: int

getGreen()

public byte getGreen()

Gets or sets the green component value.

Value: The green component value.

Returns: byte

getMode()

public int getMode()

Gets ColorMode .

Value: The color mode.

Returns: int

getNamespaceUri()

public String getNamespaceUri()

Gets the default namespace URI.

Returns: java.lang.String - The default namespace URI.

getPrefix()

public String getPrefix()

Gets the prefix.

Returns: java.lang.String - The prefix.

getRed()

public byte getRed()

Gets or sets the red component value.

Value: The red component value.

Returns: byte

getSwatchName()

public String getSwatchName()

Gets or sets the name of the swatch.

Value: The name of the swatch.

Returns: java.lang.String

getXmpRepresentation()

public String getXmpRepresentation()

Gets the string contained value in XMP format.

Returns: java.lang.String - Returns the string contained value in XMP format.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setBlue(byte value)

public void setBlue(byte value)

Gets or sets the blue component value.

Value: The blue component value.

Parameters:

ParameterTypeDescription
valuebyte

setColorType(int value)

public void setColorType(int value)

Gets or sets the type of the color.

Value: The type of the color.

Parameters:

ParameterTypeDescription
valueint

setGreen(byte value)

public void setGreen(byte value)

Gets or sets the green component value.

Value: The green component value.

Parameters:

ParameterTypeDescription
valuebyte

setRed(byte value)

public void setRed(byte value)

Gets or sets the red component value.

Value: The red component value.

Parameters:

ParameterTypeDescription
valuebyte

setSwatchName(String value)

public void setSwatchName(String value)

Gets or sets the name of the swatch.

Value: The name of the swatch.

Parameters:

ParameterTypeDescription
valuejava.lang.String

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