Color
Contents
[
Hide
]Color()
Initializes a new instance of the Color
class. By default color is black.
public Color()
See Also
- class Color
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG
Color(float, float, float)
Initializes a new instance of the Color
class. All color components must be in the range 0-1.
public Color(float red, float green, float blue)
Parameter | Type | Description |
---|---|---|
red | Single | The red component of the color. |
green | Single | The green component of the color. |
blue | Single | The blue component of the color. |
See Also
- class Color
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG
Color(float, float, float, float)
Initializes a new instance of the Color
class. All color components must be in the range 0-1.
public Color(float red, float green, float blue, float alpha)
Parameter | Type | Description |
---|---|---|
red | Single | The red component of the color. |
green | Single | The green component of the color. |
blue | Single | The blue component of the color. |
alpha | Single | The alpha component of the color. |
See Also
- class Color
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG
Color(byte, byte, byte)
Initializes a new instance of the Color
class. All color components must be in the range 0-255.
public Color(byte red, byte green, byte blue)
Parameter | Type | Description |
---|---|---|
red | Byte | The red component of the color. |
green | Byte | The green component of the color. |
blue | Byte | The blue component of the color. |
See Also
- class Color
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG
Color(byte, byte, byte, byte)
Initializes a new instance of the Color
class. All color components must be in the range 0-255.
public Color(byte red, byte green, byte blue, byte alpha)
Parameter | Type | Description |
---|---|---|
red | Byte | A byte that represents the red component of the color. |
green | Byte | A byte that represents the green component of the color. |
blue | Byte | A byte that represents the blue component of the color. |
alpha | Byte | A byte that represents the alpha component of the color. |
See Also
- class Color
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG
Color(int, int, int)
Initializes a new instance of the Color
class. All color components must be in the range 0-255.
public Color(int red, int green, int blue)
Parameter | Type | Description |
---|---|---|
red | Int32 | The red component of the color. |
green | Int32 | The green component of the color. |
blue | Int32 | The blue component of the color. |
See Also
- class Color
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG
Color(int, int, int, int)
Initializes a new instance of the Color
class. All color components must be in the range 0-255.
public Color(int red, int green, int blue, int alpha)
Parameter | Type | Description |
---|---|---|
red | Int32 | The red component of the color. |
green | Int32 | The green component of the color. |
blue | Int32 | The blue component of the color. |
alpha | Int32 | The alpha component of the color. |
See Also
- class Color
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG