public class CMYKColor extends ExtendedColor
MAX_COLOR_VALUE, MAX_FLOAT_COLOR_VALUE, MAX_INT_COLOR_VALUE, type, TYPE_CMYK, TYPE_GRAY, TYPE_PATTERN, TYPE_RGB, TYPE_SEPARATION, TYPE_SHADING
BLACK, blue, BLUE, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, YELLOW
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
CMYKColor(float floatCyan,
float floatMagenta,
float floatYellow,
float floatBlack)
Construct a CMYK Color.
|
CMYKColor(float floatCyan,
float floatMagenta,
float floatYellow,
float floatBlack,
float floatAlpha)
Construct a CMYK Color.
|
CMYKColor(int intCyan,
int intMagenta,
int intYellow,
int intBlack)
Constructs a CMYK Color based on 4 color values (values are integers from 0 to 255).
|
CMYKColor(int intCyan,
int intMagenta,
int intYellow,
int intBlack,
int intAlpha)
Constructs a CMYK Color based on 4 color values (values are integers from 0 to 255).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
float |
getBlack() |
float |
getCyan() |
float |
getMagenta() |
float |
getYellow() |
int |
hashCode() |
getType, getType
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, HSBtoRGB, RGBtoHSB, toString
public CMYKColor(int intCyan, int intMagenta, int intYellow, int intBlack)
intCyan
- cyan valueintMagenta
- magenta valueintYellow
- yellow valueintBlack
- black valuepublic CMYKColor(int intCyan, int intMagenta, int intYellow, int intBlack, int intAlpha)
intCyan
- cyan valueintMagenta
- magenta valueintYellow
- yellow valueintBlack
- black valueintAlpha
- alpha valuepublic CMYKColor(float floatCyan, float floatMagenta, float floatYellow, float floatBlack)
floatCyan
- cyan valuefloatMagenta
- magenta valuefloatYellow
- yellow valuefloatBlack
- black valuepublic CMYKColor(float floatCyan, float floatMagenta, float floatYellow, float floatBlack, float floatAlpha)
floatCyan
- cyan valuefloatMagenta
- magenta valuefloatYellow
- yellow valuefloatBlack
- black valuefloatAlpha
- alpha valueCopyright © 2020. All rights reserved.