GradientFillSettings Class

Summary: Gradient fill effect settings.

Module: aspose.psd.fileformats.psd.layers.fillsettings

Full Name: aspose.psd.fileformats.psd.layers.fillsettings.GradientFillSettings

Inheritance: IFillSettings, IGradientFillSettings, BaseGradientFillSettings

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
GradientFillSettings()Initializes a new instance of the GradientFillSettings class.

Properties

NameTypeAccessDescription
align_with_layerboolr/wGets or sets a value indicating whether [align with layer].
angledoubler/wGets or sets the angle.
colorColorr/wGets or sets the color.
color_pointsIGradientColorPoint[]r/wGets or sets the color points.
ditherboolr/wGets or sets a value indicating whether this BaseGradientFillSettings is dither.
fill_typeFillTyperThe fill type.
gradient_modeGradientKindr/wMode for this gradient.
Determines ‘Gradient Type’ = ‘Solid/Noise’ (0/1).
gradient_namestringr/wGets or sets the name of the gradient.
gradient_typeGradientTyper/wGets or sets the type of the gradient.
horizontal_offsetdoubler/wGets or sets the horizontal offset in percentage.
interpolationshortr/wInterpolation. Determines Smoothness, when ‘Gradient Type’ = ‘Solid’. Value range: 0-4096.
reverseboolr/wGets or sets a value indicating whether this BaseGradientFillSettings is reverse.
scaleintr/wGets or sets the scale.
transparency_pointsIGradientTransparencyPoint[]r/wGets or sets the transparency points.
vertical_offsetdoubler/wGets or sets the vertical offset in percentage.

Methods

NameDescription
add_color_point()Adds the color point.
add_transparency_point()Adds the color point.
generate_lfx_2_resource_nodes()Generates the LFX2 resource nodes.
remove_color_point(point)Removes the color point.
remove_transparency_point(point)Removes the transparency point.

Constructor: GradientFillSettings()

 GradientFillSettings() 

Initializes a new instance of the GradientFillSettings class.

Method: add_color_point()

 add_color_point() 

Adds the color point.

Returns

TypeDescription
GradientColorPointCreated color point

Method: add_transparency_point()

 add_transparency_point() 

Adds the color point.

Returns

TypeDescription
GradientTransparencyPointCreated transparency point

Method: generate_lfx_2_resource_nodes() [static]

 generate_lfx_2_resource_nodes() 

Generates the LFX2 resource nodes.

Returns

TypeDescription
System.Collections.Generic.List<Aspose.PSD.FileFormats.Psd.Layers.LayerResources.OSTypeStructure>Generated List of OSTypeStructure

Method: remove_color_point(point)

 remove_color_point(point) 

Removes the color point.

Parameters:

ParameterTypeDescription
pointIGradientColorPointThe point.

Method: remove_transparency_point(point)

 remove_transparency_point(point) 

Removes the transparency point.

Parameters:

ParameterTypeDescription
pointIGradientTransparencyPointThe point.