com.spire.pdf.graphics
Class PdfRGBColor

java.lang.Object
  extended by com.spire.pdf.graphics.PdfRGBColor

public final class PdfRGBColor
extends java.lang.Object

Implements structures and routines working with color.


Constructor Summary
PdfRGBColor()
           
PdfRGBColor(byte red, byte green, byte blue)
          Initializes a new instance of the class.
PdfRGBColor(byte a, byte red, byte green, byte blue)
           
PdfRGBColor(java.awt.Color color)
          Initializes a new instance of the class.
PdfRGBColor(float gray)
          Initializes a new instance of the class.
PdfRGBColor(float red, float green, float blue)
           
PdfRGBColor(float cyan, float magenta, float yellow, float black)
          Initializes a new instance of the class.
PdfRGBColor(PdfRGBColor color)
          Initializes a new instance of the class.
 
Method Summary
 byte getB()
          Gets Blue channel value.
 float getBlue()
          Gets the blue.
 float getC()
          Gets Cyan channel value.
static PdfRGBColor getEmpty()
          Gets a null color.
 byte getG()
          Gets Green channel value.
 float getGray()
          Gets Gray channel value.
 float getGreen()
          Gets the green.
 float getK()
          Gets Black channel value.
 float getM()
          Gets Magenta channel value.
 byte getR()
          Gets Red channel value.
 float getRed()
          Gets the red.
 float getY()
          Gets Yellow channel value.
 void setB(byte value)
          Sets Blue channel value.
 void setC(float value)
          Sets Cyan channel value.
 void setG(byte value)
          Sets Green channel value.
 void setGray(float value)
          Sets Gray channel value.
 void setK(float value)
          Sets Black channel value.
 void setM(float value)
          sets Magenta channel value.
 void setR(byte value)
          Sets Red channel value.
 void setY(float value)
          Sets Yellow channel value.
 

Constructor Detail

PdfRGBColor

public PdfRGBColor()

PdfRGBColor

public PdfRGBColor(PdfRGBColor color)
Initializes a new instance of the class.

Parameters:
color - Source color object.

PdfRGBColor

public PdfRGBColor(java.awt.Color color)
Initializes a new instance of the class.

Parameters:
color - Source color object.

PdfRGBColor

public PdfRGBColor(float gray)
Initializes a new instance of the class.

Parameters:
gray - Gray value.

PdfRGBColor

public PdfRGBColor(byte red,
                   byte green,
                   byte blue)
Initializes a new instance of the class.

Parameters:
red - Red channel value.
green - Green channel value.
blue - Blue channel value.

PdfRGBColor

public PdfRGBColor(float red,
                   float green,
                   float blue)

PdfRGBColor

public PdfRGBColor(float cyan,
                   float magenta,
                   float yellow,
                   float black)
Initializes a new instance of the class.

Parameters:
cyan - Cyan channel value.
magenta - Magenta channel value.
yellow - Yellow channel value.
black - Black channel value.

PdfRGBColor

public PdfRGBColor(byte a,
                   byte red,
                   byte green,
                   byte blue)
Method Detail

getEmpty

public static PdfRGBColor getEmpty()
Gets a null color.


getB

public byte getB()
Gets Blue channel value.


setB

public void setB(byte value)
Sets Blue channel value.


getBlue

public float getBlue()
Gets the blue.


getC

public float getC()
Gets Cyan channel value.


setC

public void setC(float value)
Sets Cyan channel value.


getG

public byte getG()
Gets Green channel value.


setG

public void setG(byte value)
Sets Green channel value.


getGreen

public float getGreen()
Gets the green.


getGray

public float getGray()
Gets Gray channel value.


setGray

public void setGray(float value)
Sets Gray channel value.


getK

public float getK()
Gets Black channel value.


setK

public void setK(float value)
Sets Black channel value.


getM

public float getM()
Gets Magenta channel value.


setM

public void setM(float value)
sets Magenta channel value.


getR

public byte getR()
Gets Red channel value.


setR

public void setR(byte value)
Sets Red channel value.


getRed

public float getRed()
Gets the red.


getY

public float getY()
Gets Yellow channel value.


setY

public void setY(float value)
Sets Yellow channel value.