public class CadAciColor extends Object
Represents an indexed color.
Constructor and Description |
---|
CadAciColor(byte r,
byte g,
byte b)
Initializes a new instance of the
CadAciColor class. |
CadAciColor(Color color)
Initializes a new instance of the
CadAciColor class. |
CadAciColor(float r,
float g,
float b)
Initializes a new instance of the
CadAciColor class. |
CadAciColor(short index)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
static CadAciColor |
getBlue()
Gets the blue.
|
static CadAciColor |
getByBlock()
Gets the ByBlock color.
|
static CadAciColor |
getByLayer()
Gets the ByLayer color.
|
static CadAciColor |
getCyan()
Gets a default cyan color.
|
static CadAciColor |
getDarkGrey()
Gets a default dark grey color.
|
static CadAciColor |
getDefault()
Gets a default white/black color.
|
static CadAciColor |
getGreen()
Gets a default green color.
|
short |
getIndex()
Gets the color index.
|
static CadAciColor |
getLightGrey()
Gets a default light grey color.
|
static CadAciColor |
getMagenta()
Gets a default magenta color.
|
static CadAciColor |
getRed()
Gets a default red color.
|
static CadAciColor |
getYellow()
Gets a default yellow color.
|
void |
setIndex(short value)
Sets the color index.
|
com.aspose.ms.System.Drawing.Color |
toColor_internalized() |
Color |
toColor()
Converts the CadAciColor to a
Colorcolor . |
String |
toString()
Converts the value of this instance to its equivalent string representation.
|
public CadAciColor(byte r, byte g, byte b)
Initializes a new instance of the CadAciColor
class.
r
- The Red Colorg
- The Green Colorb
- The Blue Colorpublic CadAciColor(float r, float g, float b)
Initializes a new instance of the CadAciColor
class.
r
- The Red Colorg
- The Green Colorb
- The Blue Colorpublic CadAciColor(Color color)
Initializes a new instance of the CadAciColor
class.
color
- The color.public CadAciColor(short index)
Initializes a new instance of the class.
index
- The index.com.aspose.ms.System.ArgumentException
- index out of rangepublic static CadAciColor getBlue()
Gets the blue.
public static CadAciColor getByBlock()
Gets the ByBlock color.
public static CadAciColor getByLayer()
Gets the ByLayer color.
public static CadAciColor getCyan()
Gets a default cyan color.
public static CadAciColor getDarkGrey()
Gets a default dark grey color.
public static CadAciColor getDefault()
Gets a default white/black color.
public static CadAciColor getGreen()
Gets a default green color.
public static CadAciColor getLightGrey()
Gets a default light grey color.
public static CadAciColor getMagenta()
Gets a default magenta color.
public static CadAciColor getRed()
Gets a default red color.
public static CadAciColor getYellow()
Gets a default yellow color.
public short getIndex()
Gets the color index.
Accepted color index values range from 0 to 256. Indexes from 1 to 255 represents a color, the index 256 is reserved to define a color bylayer and the index 0 represents byblock.
public void setIndex(short value)
Sets the color index.
Accepted color index values range from 0 to 256. Indexes from 1 to 255 represents a color, the index 256 is reserved to define a color bylayer and the index 0 represents byblock.
value
- the color index.public Color toColor()
Converts the CadAciColor to a Colorcolor
.
public com.aspose.ms.System.Drawing.Color toColor_internalized()