FillFormat — Aspose.Slides FOSS for C++ API Reference

ImageRenderOptions FillFormat המחלקה שולטת בתכונות המילוי של צורות וטקסט. היא תומכת בסוגי מילוי מוצק, גרדיאנט, תבנית ותמונה.

ImageRenderOptions: Aspose::Slides::Foss

#include <Aspose/Slides/Foss/fill_format.h>
class FillFormat

ImageRenderOptions: include/Aspose/Slides/Foss/fill_format.h


ImageRenderOptions

ImageRenderOptionsImageRenderOptionsImageRenderOptions
fill_type()ImageRenderOptionsמחזיר את FillType (אחיד, מדרג, תבנית, תמונה, ללא מילוי).
solid_fill_color()ImageRenderOptionsImageRenderOptions SimpleColorFormat למילויים מוצקים.
gradient_format()ImageRenderOptionsImageRenderOptions GradientFormat למילויים מדרגיים.
pattern_format()ImageRenderOptionsImageRenderOptions PatternFormat למילויים בתבנית.
picture_fill_format()ImageRenderOptionsImageRenderOptions PictureFillFormat למילויים בתמונות.
rotate_with_shape()ImageRenderOptionsהאם המילוי מסתובב עם הצורה.

ממשק IFillFormat

ImageRenderOptionsImageRenderOptions
fill_type() / set_fill_type(FillType)קבל/הגדר את סוג המילוי.
rotate_with_shape() / set_rotate_with_shape(NullableBool)קבל/הגדר את התנהגות הסיבוב.

דוגמת שימוש

#include <Aspose/Slides/Foss/presentation.h>
using namespace Aspose::Slides::Foss;

Presentation prs("deck.pptx");
auto& shape = prs.slides()[0].shapes()[0];
auto& fill = shape.fill_format();
// Check fill type, access gradient/pattern properties, etc.

ראה גם

 עברית