|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aspose.pdf.elements.Color com.aspose.pdf.elements.GrayColorSpace
public class GrayColorSpace
Encapsulates the Gray colorspace.
Field Summary |
---|
Fields inherited from class com.aspose.pdf.elements.Color |
---|
Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive, Purple, Red, Silver, Teal, White, Yellow |
Constructor Summary | |
---|---|
GrayColorSpace(short grayValue)
Initializes a new instance of the GrayColorSpace class. |
|
GrayColorSpace(java.lang.String gray)
Initializes a new instance of the GrayColorSpace class from a string. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
float |
getGrayValue()
Gets a value(0-255) that indicates the gray scale. |
short[] |
getRGBComponents()
Gets a color represented in rgb color space. |
java.lang.String |
getRGBComponentsAsString()
Gets a color representation in rgb color space as String. |
void |
setGrayValue(short grayValue)
Sets a value(0-255) that indicates the gray scale. |
Methods inherited from class com.aspose.pdf.elements.Color |
---|
equals, getColor |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrayColorSpace(short grayValue)
public GrayColorSpace(java.lang.String gray)
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class Color
java.lang.CloneNotSupportedException
Object.clone()
public short[] getRGBComponents()
Color
getRGBComponents
in class Color
Color.getRGBComponents()
public float getGrayValue()
public void setGrayValue(short grayValue)
grayValue
- The gray value to set.public java.lang.String getRGBComponentsAsString()
Color
Color.getRGBComponentsAsString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |