Color

Overview

Color is a struct in Aspose.Cells FOSS for C++.

Represents color.

This struct provides 14 methods for working with Color objects in C++ programs. Available methods include: Color, Empty, Equals, FromArgb, FromCore, GetA, GetB, GetG, GetHashCode, GetR, ToCore. All public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package. Accessor methods: Color.

Accessor Methods

NameTypeAccessDescription
ColorColorReadGets the color.

Methods

SignatureDescription
Color()ColorGets the empty.
Color()ColorCreates a color from ARGB components. The a. The r. The g. The b. The color.
Color()Initializes a new instance of the Color struct.
Color(a: std::uint8_t, r: std::uint8_t, g: std::uint8_t, b: std::uint8_t)Initializes a new instance of the Color struct. The a. The r. The g. The b.
GetA()std::uint8_tGets the a.
GetR()std::uint8_tGets the r.
GetG()std::uint8_tGets the g.
GetB()std::uint8_tGets the b.
Empty()ColorGets the empty.
FromArgb(a: int, r: int, g: int, b: int)ColorCreates a color from ARGB components. The a. The r. The g. The b. The color.
Equals(other: Color)boolDetermines whether the specified value is equal to the current instance. The other. true if the condition is met; otherwise, false.
GetHashCode()intReturns a hash code for the current instance. The hash code.
ToCore()Core::ColorValueConversion to Core::ColorValue.
FromCore(value: Core::ColorValue)ColorCreates a Color from a Core::ColorValue.

See Also

 English