Color.FromRgba
Contents
[
Hide
]FromRgba(byte, byte, byte, byte)
Returns a new Color with the requested ged, green, blue, alpha values. All color components must be in the range 0-255.
public static Color FromRgba(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. |
Return Value
A new instance of the Color
class
See Also
- class Color
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG
FromRgba(int, int, int, int)
Returns a new Color with the requested ged, green, blue, alpha values. All color components must be in the range 0-255.
public static Color FromRgba(int red, int green, int blue, int alpha)
Parameter | Type | Description |
---|---|---|
red | Int32 | A int that represents the red component of the color. |
green | Int32 | A int that represents the green component of the color. |
blue | Int32 | A int that represents the blue component of the color. |
alpha | Int32 | A int that represents the alpha component of the color. |
Return Value
A new instance of the Color
class
See Also
- class Color
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG
FromRgba(float, float, float, float)
Returns a new Color with the requested ged, green, blue, alpha values. All color components must be in the range 0-1.
public static Color FromRgba(float red, float green, float blue, float alpha)
Parameter | Type | Description |
---|---|---|
red | Single | A float that represents the red component of the color. |
green | Single | A float that represents the green component of the color. |
blue | Single | A float that represents the blue component of the color. |
alpha | Single | A float that represents the alpha component of the color. |
Return Value
A new instance of the Color
class
See Also
- class Color
- namespace Aspose.Svg.Drawing
- assembly Aspose.SVG