GradientFormat / PatternFormat

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

PropertyAccessorDescription
gradient_shape()ReadThe gradient shape (linear, radial, etc.).
gradient_direction()ReadThe gradient direction.
linear_gradient_scaled()ReadWhether the linear gradient is scaled.
tile_flip()ReadTile flip mode for gradient fills.
gradient_stops()ReadGradientStopCollection of color stops.

IGradientFormat Interface

MethodDescription
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

MethodDescription
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.

See Also