ColorFormat — Aspose.Slides FOSS for C++ API Reference
The ColorFormat class specifies a color for use in shape fills, lines, text, and effects. Colors can be expressed as RGB, preset, or scheme colors.
Namespace: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/color_format.h>class ColorFormatHeader: include/Aspose/Slides/Foss/color_format.h
IColorFormat Interface
The IColorFormat interface (from i_color_format.h) provides methods for getting and setting color values:
| Method | Description |
|---|---|
color_type() | Returns the ColorType (RGB, scheme, preset, etc.). |
set_color_type(ColorType) | Set the color type. |
color() | Returns the resolved color value. |
set_color(...) | Set the color value. |
set_color_from_arg(uint8_t r, uint8_t g, uint8_t b) | Set color from RGB components. |
SimpleColorFormat
The SimpleColorFormat class provides a simplified color interface used by fills, bullets, and 3-D effects:
| Property | Description |
|---|---|
color_type() | The color type. |
preset_color() | Preset color value. |
scheme_color() | Scheme color value. |