|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaspose.pdf.Color
public class Color
Represents the colorspaces used in aspose.pdf including
CmykColorSpace
and GrayColorSpace
.
Typical usages are the following:
Constructor Summary | |
---|---|
Color()
Constructor - initializes a new instance of the Color class. |
|
Color(short grayValue)
Constructor - Initializes a new instance of the Color class
with GrayColorSpace . |
|
Color(short r,
short g,
short b)
Constructor - initializes a new instance of the class with the specified red, green, and blue values in the range (0 - 255). |
|
Color(short c,
short m,
short y,
short k)
Constructor - initializes a new instance of the Color class
with CmykColorSpace . |
|
Color(java.lang.String colorName)
Constructor - initializes a new instance of the Color class with
RgbColorSpace from specified color name. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones a new Color object. |
CmykColorSpace |
getCmykColorSpace()
Gets a CmykColorSpace object that
indicates the CMYK colorspace. |
ColorSpaceType |
getColorSpaceType()
Gets a ColorSpaceType object that
indicates the colorspace type. |
GrayColorSpace |
getGrayColorSpace()
Gets a GrayColorSpace object that indicates
the gray colorspace. |
PatternColorSpace |
getPatternColorSpace()
Gets a PatternColorSpace object that indicates
the pattern colorspace. |
java.awt.Color |
getRgbColorSpace()
Gets a object that indicates the RGB colorspace. |
boolean |
isSame(Color color)
A boolean value indicates whether two Color are the same |
void |
setCmykColorSpace(CmykColorSpace value)
Sets a object that indicates the CMYK colorspace. |
void |
setColorSpaceType(ColorSpaceType value)
Sets a ColorSpaceType object that
indicates the colorspace type. |
void |
setGrayColorSpace(GrayColorSpace value)
Sets a object that indicates the gray colorspace. |
void |
setPatternColorSpace(PatternColorSpace value)
Sets a object that indicates the pattern colorspace. |
void |
setRgbColorSpace(java.awt.Color value)
Sets a object that indicates the RGB colorspace. |
int |
toArgb()
The ARGB color. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Color()
Color
class.
public Color(short grayValue)
Color
class
with GrayColorSpace
.
grayValue
- Short value.public Color(short r, short g, short b)
r
- The red componentg
- The green componentb
- The blue componentpublic Color(short c, short m, short y, short k)
Color
class
with CmykColorSpace
.
c
- The cyan value.m
- The magenta value.y
- The yellow value.k
- The black value.public Color(java.lang.String colorName)
Color
class with
RgbColorSpace from specified color name.
colorName
- The color name.Method Detail |
---|
public int toArgb()
public ColorSpaceType getColorSpaceType()
ColorSpaceType
object that
indicates the colorspace type.
ColorSpaceType
object.public void setColorSpaceType(ColorSpaceType value)
ColorSpaceType
object that
indicates the colorspace type.
value
- A ColorSpaceType
object.public java.awt.Color getRgbColorSpace()
Color
object.public void setRgbColorSpace(java.awt.Color value)
value
- A Color
object.public CmykColorSpace getCmykColorSpace()
CmykColorSpace
object that
indicates the CMYK colorspace. Note that you can use the constructor
to create a color object with CMYK colorspace and need not use this
class directly.
CmykColorSpace
object.public void setCmykColorSpace(CmykColorSpace value)
value
- A CmykColorSpace
object.public GrayColorSpace getGrayColorSpace()
GrayColorSpace
object that indicates
the gray colorspace. Note that you can use the constructor to create a color
object with gray colorspace and need not use this class directly.
GrayColorSpace
object.public void setGrayColorSpace(GrayColorSpace value)
value
- GrayColorSpace
object.public PatternColorSpace getPatternColorSpace()
PatternColorSpace
object that indicates
the pattern colorspace.
PatternColorSpace
object.public void setPatternColorSpace(PatternColorSpace value)
value
- PatternColorSpace
object.public java.lang.Object clone()
Color
object.
clone
in class java.lang.Object
Color
object.public boolean isSame(Color color)
Color
are the same. *
color
- The Color
object to be compared.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |