ColorExt Class
Namespace: Stimulsoft.Base.Drawing
This class contains some methods for an extended functionality of Color type.
Methods
| Method | Returns | Description |
|---|---|---|
ChangeAlpha static |
Color | Changes alpha channel from a color. |
RemoveAlpha static |
Color | Removes alpha channel from a color. |
ToHex static |
string | Removes alpha channel from a color. |
Method Details
ChangeAlpha static
ChangeAlpha(color: Color, alpha: int): Color
Changes alpha channel from a color.
Parameters
- color (Color) — A color in which Alpha channel should be changed.
- alpha (int)
Returns Color — A color with changed Alpha channel.
RemoveAlpha static
RemoveAlpha(color: Color): Color
Removes alpha channel from a color.
Parameters
- color (Color) — A color in which Alpha channel should be removed.
Returns Color — A color with removed Alpha channel.
ToHex static
ToHex(color: Color): string
Removes alpha channel from a color.
Parameters
- color (Color) — A color in which Alpha channel should be removed.
Returns string — A color with removed Alpha channel.