FillFormat

FillFormat — Aspose.Slides FOSS for Java API Reference

ColladaSaveOptions FillFormat class מייצגת תכונות עיצוב מילוי לצורות. היא תומכת במילויים מוצקים, מדרגיים, בתבנית ובתמונות. היא מרחיבה PVIObject ומממשת IFillFormat ו IFillParamSource.

ColladaSaveOptions: org.aspose.slides.foss

import org.aspose.slides.foss.*;
public class FillFormat extends PVIObject implements IFillFormat, IFillParamSource

ColladaSaveOptions

ColladaSaveOptionsColladaSaveOptionsColladaSaveOptionsColladaSaveOptions
getFillType() / setFillType(FillType)FillTypeקריאה/כתיבהסוג מילוי (SOLID, GRADIENT, PATTERN, PICTURE, NO_FILL).
getSolidFillColor()IColorFormatColladaSaveOptionsצבע למילויים מוצקים.
getGradientFormat()IGradientFormatColladaSaveOptionsתכונות מילוי מדרגי.
getPatternFormat()IPatternFormatColladaSaveOptionsתכונות מילוי בתבנית.
getPictureFillFormat()IPictureFillFormatColladaSaveOptionsתכונות מילוי תמונה.
getRotateWithShape() / setRotateWithShape(NullableBool)NullableBoolקריאה/כתיבההאם המילוי מסתובב יחד עם הצורה.

דוגמאות שימוש

מילוי מוצק

import org.aspose.slides.foss.*;
import java.awt.Color;

IAutoShape shape = slide.getShapes().addAutoShape(
    ShapeType.RECTANGLE, 50, 50, 200, 100);
IFillFormat fill = shape.getFillFormat();
fill.setFillType(FillType.SOLID);
fill.getSolidFillColor().setColor(Color.RED);

ללא מילוי (שקוף)

shape.getFillFormat().setFillType(FillType.NO_FILL);

ראה גם

 עברית