Aspose::Page::Drawing::Color::FromArgb method

Color::FromArgb(int32_t, Aspose::Page::Drawing::Color) method

Creates a T:Aspose::Page::Drawing::Color structure from the specified T:Aspose::Page::Drawing::Color structure, but with the new specified alpha value. Although this method allows a 32-bit value to be passed for the alpha value, the value is limited to 8 bits.

static Aspose::Page::Drawing::Color Aspose::Page::Drawing::Color::FromArgb(int32_t alpha, Aspose::Page::Drawing::Color baseColor)
ParameterTypeDescription
alphaint32_tThe alpha value for the new T:Aspose::Page::Drawing::Color. Valid values are 0 through 255.
baseColorAspose::Page::Drawing::ColorThe T:Aspose::Page::Drawing::Color from which to create the new T:Aspose::Page::Drawing::Color.

ReturnValue

The T:Aspose::Page::Drawing::Color that this method creates.

See Also

Color::FromArgb(int32_t, int32_t, int32_t, int32_t) method

Creates a T:Aspose::Page::Drawing::Color structure from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.

static Aspose::Page::Drawing::Color Aspose::Page::Drawing::Color::FromArgb(int32_t alpha, int32_t red, int32_t green, int32_t blue)
ParameterTypeDescription
alphaint32_tThe alpha component. Valid values are 0 through 255.
redint32_tThe red component. Valid values are 0 through 255.
greenint32_tThe green component. Valid values are 0 through 255.
blueint32_tThe blue component. Valid values are 0 through 255.

ReturnValue

The T:Aspose::Page::Drawing::Color that this method creates.

See Also

Color::FromArgb(int32_t) method

Creates a T:Aspose::Page::Drawing::Color structure from a 32-bit ARGB value.

static Aspose::Page::Drawing::Color Aspose::Page::Drawing::Color::FromArgb(int32_t argb)
ParameterTypeDescription
argbint32_tA value specifying the 32-bit ARGB value.

ReturnValue

The T:Aspose::Page::Drawing::Color structure that this method creates.

See Also

Color::FromArgb(int32_t, int32_t, int32_t) method

Creates a T:Aspose::Page::Drawing::Color structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.

static Aspose::Page::Drawing::Color Aspose::Page::Drawing::Color::FromArgb(int32_t red, int32_t green, int32_t blue)
ParameterTypeDescription
redint32_tThe red component value for the new T:Aspose::Page::Drawing::Color. Valid values are 0 through 255.
greenint32_tThe green component value for the new T:Aspose::Page::Drawing::Color. Valid values are 0 through 255.
blueint32_tThe blue component value for the new T:Aspose::Page::Drawing::Color. Valid values are 0 through 255.

ReturnValue

The T:Aspose::Page::Drawing::Color that this method creates.

See Also