Color
Overview
Color is a struct in Aspose.Cells FOSS for Rust.
Inherits from: Debug, Default, Clone, and 4 more.
Represents color.
This struct provides 5 methods for working with Color objects in Rust programs.
Available methods include: equals, from_argb, from_core, get_hash_code, to_core.
All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.
Fields: a, b, g, r.
Fields
| Name | Type | Access | Description |
|---|---|---|---|
a | u8 | Read/Write | Gets the a. |
r | u8 | Read/Write | Gets the r. |
g | u8 | Read/Write | Gets the g. |
b | u8 | Read/Write | Gets the b. |
Methods
| Signature | Description |
|---|---|
from_argb(a: i32, r: i32, g: i32, b: i32) → Color | Creates a color from ARGB channel values. |
equals(other: Color) → bool | Determines whether the specified value is equal to the current instance. |
get_hash_code() → i32 | Gets the associated value. |
to_core() → ColorValue | Converts this public color facade to the internal color representation. |
from_core(value: ColorValue) → Color | Creates a public color facade from the internal color representation. |