GradientFillSettings Class
Contents
[
Hide
]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.12.0
Constructors
| Name | Description | 
|---|---|
| GradientFillSettings() | Initializes a new instance of the GradientFillSettings class. | 
Properties
| Name | Type | Access | Description | 
|---|---|---|---|
| align_with_layer | bool | r/w | Gets or sets a value indicating whether [align with layer]. | 
| angle | double | r/w | Gets or sets the angle. | 
| color | Color | r/w | Gets or sets the color. | 
| color_points | IGradientColorPoint[] | r/w | Gets or sets the color points. | 
| dither | bool | r/w | Gets or sets a value indicating whether this BaseGradientFillSettings is dither. | 
| fill_type | FillType | r | The fill type. | 
| gradient_mode | GradientKind | r | Gets the mode for this gradient. Determines ‘Gradient Type’ = ‘Solid/Noise’ (0/1). | 
| gradient_name | string | r/w | Gets or sets the name of the gradient. | 
| gradient_type | GradientType | r/w | Gets or sets the type of the gradient. | 
| horizontal_offset | double | r/w | Gets or sets the horizontal offset in percentage. | 
| interpolation | short | r/w | Interpolation. Determines Smoothness, when ‘Gradient Type’ = ‘Solid’. Value range: 0-4096. | 
| reverse | bool | r/w | Gets or sets a value indicating whether this BaseGradientFillSettings is reverse. | 
| scale | int | r/w | Gets or sets the scale. | 
| transparency_points | IGradientTransparencyPoint[] | r/w | Gets or sets the transparency points. | 
| vertical_offset | double | r/w | Gets or sets the vertical offset in percentage. | 
Methods
| Name | Description | 
|---|---|
| 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
| Type | Description | 
|---|---|
| GradientColorPoint | Created color point | 
Method: add_transparency_point()
 add_transparency_point() 
Adds the color point.
Returns
| Type | Description | 
|---|---|
| GradientTransparencyPoint | Created transparency point | 
Method: generate_lfx_2_resource_nodes() [static]
 generate_lfx_2_resource_nodes() 
Generates the LFX2 resource nodes.
Returns
| Type | Description | 
|---|---|
| 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:
| Parameter | Type | Description | 
|---|---|---|
| point | IGradientColorPoint | The point. | 
Method: remove_transparency_point(point)
 remove_transparency_point(point) 
Removes the transparency point.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| point | IGradientTransparencyPoint | The point. |