Color

Overview

Color is a struct in Aspose.Cells FOSS for Rust. Inherits from: Debug, Default, Clone, and 4 more.

Represents color.

This struct declares 5 methods for Color objects in Rust programs. Available methods include: equals, from_argb, from_core, get_hash_code, to_core. Public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package. Fields: a, b, g, r.

Fields

NameTypeAccessDescription
au8Read/WriteGets the a.
ru8Read/WriteGets the r.
gu8Read/WriteGets the g.
bu8Read/WriteGets the b.

Methods

SignatureDescription
from_argb(a: i32, r: i32, g: i32, b: i32) → ColorCreates a color from ARGB channel values.
equals(other: Color) → boolDetermines whether the specified value is equal to the current instance.
get_hash_code() → i32Gets the associated value.
to_core() → ColorValueConverts this public color facade to the internal color representation.
from_core(value: ColorValue) → ColorCreates a public color facade from the internal color representation.

See Also

 English