GradientFormat / PatternFormat — Aspose.Slides FOSS for C++ API Reference
GradientFormat
The GradientFormat class configures gradient fills for shapes and lines.
Namespace: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/gradient_format.h>Header: include/Aspose/Slides/Foss/gradient_format.h
Properties
| Property | Accessor | Description |
|---|---|---|
gradient_shape() | Read | The gradient shape (linear, radial, etc.). |
gradient_direction() | Read | The gradient direction. |
linear_gradient_scaled() | Read | Whether the linear gradient is scaled. |
tile_flip() | Read | Tile flip mode for gradient fills. |
gradient_stops() | Read | GradientStopCollection of color stops. |
IGradientFormat Interface
| Method | Description |
|---|---|
gradient_style() / set_gradient_style(GradientStyle) | Get/set gradient style. |
gradient_direction() / set_gradient_direction(GradientDirection) | Get/set direction. |
gradient_angle() / set_gradient_angle(float) | Get/set angle. |
gradient_shape() / set_gradient_shape(GradientShape) | Get/set shape. |
PatternFormat
The PatternFormat class configures pattern fills.
#include <Aspose/Slides/Foss/pattern_format.h>Header: include/Aspose/Slides/Foss/pattern_format.h
IPatternFormat Interface
| Method | Description |
|---|---|
pattern_style() / set_pattern_style(PatternStyle) | Get/set the pattern style (e.g., cross-hatch, dots). |
fore_color() | Foreground color of the pattern. |
back_color() | Background color of the pattern. |