Package com.storedobject.pdf
Class PDFColor
java.lang.Object
com.storedobject.pdf.PDFColor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbrighter()Create a bright color from this instance.darker()Create a darker color from this instance.intgetAlpha()Get the alpha value.intgetBlue()Get the blue value.intgetGreen()Get the green value.intgetRed()Get the red value.intgetRGB()Get the RGB value (32 bit value - each 8 bit part from the left represents Alpha, Red, Green, Blue respectively).
-
Field Details
-
WHITE
-
LIGHT_GRAY
-
GRAY
-
DARK_GRAY
-
BLACK
-
RED
-
PINK
-
ORANGE
-
YELLOW
-
GREEN
-
MAGENTA
-
CYAN
-
BLUE
-
-
Constructor Details
-
PDFColor
public PDFColor(int red, int green, int blue, int alpha) Create a color from the RGB values and alpha (All values are 8 bits - 0 to 255).- Parameters:
red- Red value.green- Green value.blue- Blue value.alpha- Alpha value.
-
PDFColor
public PDFColor(int red, int green, int blue) Create a color from the RGB values and alpha = 1 (All values are 8 bits - 0 to 255).- Parameters:
red- Red value.green- Green value.blue- Blue value.
-
-
Method Details
-
getRed
public int getRed()Get the red value.- Returns:
- Red value.
-
getGreen
public int getGreen()Get the green value.- Returns:
- Green value.
-
getBlue
public int getBlue()Get the blue value.- Returns:
- Blue value.
-
getAlpha
public int getAlpha()Get the alpha value.- Returns:
- Alpha value.
-
getRGB
public int getRGB()Get the RGB value (32 bit value - each 8 bit part from the left represents Alpha, Red, Green, Blue respectively).- Returns:
- RGB value.
-
brighter
-
darker
-