public class GradientFillSettings extends BaseFillSettings implements IGradientFillSettings
Gradient fill effect settings.
BaseFillSettings| Constructor and Description |
|---|
GradientFillSettings()
Initializes a new instance of the
GradientFillSettings class. |
| Modifier and Type | Method and Description |
|---|---|
GradientColorPoint |
addColorPoint()
Adds the color point.
|
GradientTransparencyPoint |
addTransparencyPoint()
Adds the color point.
|
static List<OSTypeStructure> |
generateLfx2ResourceNodes()
Generates the LFX2 resource nodes.
|
boolean |
getAlignWithLayer()
Gets or sets a value indicating whether [align with layer].
|
double |
getAngle()
Gets or sets the angle.
|
Color |
getColor()
Gets or sets the color.
|
IGradientColorPoint[] |
getColorPoints()
Gets or sets the color points.
|
boolean |
getDither()
Gets or sets a value indicating whether this
GradientFillSettings is dither. |
int |
getFillType()
The fill type
|
String |
getGradientName()
Gets or sets the name of the gradient.
|
int |
getGradientType()
Gets or sets the type of the gradient.
|
double |
getHorizontalOffset()
Gets or sets the horizontal offset.
|
boolean |
getReverse()
Gets or sets a value indicating whether this
GradientFillSettings is reverse. |
int |
getScale()
Gets or sets the scale.
|
IGradientTransparencyPoint[] |
getTransparencyPoints()
Gets or sets the transparency points.
|
double |
getVerticalOffset()
Gets or sets the vertical offset.
|
void |
removeColorPoint(IGradientColorPoint point)
Removes the color point.
|
void |
removeTransparencyPoint(IGradientTransparencyPoint point)
Removes the transparency point.
|
void |
setAlignWithLayer(boolean value)
Gets or sets a value indicating whether [align with layer].
|
void |
setAngle(double value)
Gets or sets the angle.
|
void |
setColor(Color value)
Gets or sets the color.
|
void |
setColorPoints(IGradientColorPoint[] value)
Gets or sets the color points.
|
void |
setDither(boolean value)
Gets or sets a value indicating whether this
GradientFillSettings is dither. |
void |
setGradientName(String value)
Gets or sets the name of the gradient.
|
void |
setGradientType(int value)
Gets or sets the type of the gradient.
|
void |
setHorizontalOffset(double value)
Gets or sets the horizontal offset.
|
void |
setReverse(boolean value)
Gets or sets a value indicating whether this
GradientFillSettings is reverse. |
void |
setScale(int value)
Gets or sets the scale.
|
void |
setTransparencyPoints(IGradientTransparencyPoint[] value)
Gets or sets the transparency points.
|
void |
setVerticalOffset(double value)
Gets or sets the vertical offset.
|
public GradientFillSettings()
Initializes a new instance of the GradientFillSettings class.
public final Color getColor()
Gets or sets the color.
Value: The color.getColor in interface IGradientFillSettingspublic final void setColor(Color value)
Gets or sets the color.
Value: The color.setColor in interface IGradientFillSettingspublic final boolean getAlignWithLayer()
Gets or sets a value indicating whether [align with layer].
Value:true if [align with layer]; otherwise, false.getAlignWithLayer in interface IGradientFillSettingspublic final void setAlignWithLayer(boolean value)
Gets or sets a value indicating whether [align with layer].
Value:true if [align with layer]; otherwise, false.setAlignWithLayer in interface IGradientFillSettingspublic final boolean getDither()
Gets or sets a value indicating whether this GradientFillSettings is dither.
true if dither; otherwise, false.getDither in interface IGradientFillSettingspublic final void setDither(boolean value)
Gets or sets a value indicating whether this GradientFillSettings is dither.
true if dither; otherwise, false.setDither in interface IGradientFillSettingspublic final boolean getReverse()
Gets or sets a value indicating whether this GradientFillSettings is reverse.
true if reverse; otherwise, false.getReverse in interface IGradientFillSettingspublic final void setReverse(boolean value)
Gets or sets a value indicating whether this GradientFillSettings is reverse.
true if reverse; otherwise, false.setReverse in interface IGradientFillSettingspublic final double getAngle()
Gets or sets the angle.
getAngle in interface IGradientFillSettingsPsdImageArgumentException - Angle must be in range from -180.0 to 180.0
Value:
The angle.public final void setAngle(double value)
Gets or sets the angle.
setAngle in interface IGradientFillSettingsPsdImageArgumentException - Angle must be in range from -180.0 to 180.0
Value:
The angle.public final int getScale()
Gets or sets the scale.
getScale in interface IGradientFillSettingsPsdImageArgumentException - Scale must be in range from 1 to 1000.
Value:
The scale.public final void setScale(int value)
Gets or sets the scale.
setScale in interface IGradientFillSettingsPsdImageArgumentException - Scale must be in range from 1 to 1000.
Value:
The scale.public final int getGradientType()
Gets or sets the type of the gradient.
Value: The type of the gradient.getGradientType in interface IGradientFillSettingspublic final void setGradientType(int value)
Gets or sets the type of the gradient.
Value: The type of the gradient.setGradientType in interface IGradientFillSettingspublic final String getGradientName()
Gets or sets the name of the gradient.
Value: The name of the gradient.getGradientName in interface IGradientFillSettingspublic final void setGradientName(String value)
Gets or sets the name of the gradient.
Value: The name of the gradient.setGradientName in interface IGradientFillSettingspublic final double getHorizontalOffset()
Gets or sets the horizontal offset.
Value: The horizontal offset.getHorizontalOffset in interface IGradientFillSettingspublic final void setHorizontalOffset(double value)
Gets or sets the horizontal offset.
Value: The horizontal offset.setHorizontalOffset in interface IGradientFillSettingspublic final double getVerticalOffset()
Gets or sets the vertical offset.
Value: The vertical offset.getVerticalOffset in interface IGradientFillSettingspublic final void setVerticalOffset(double value)
Gets or sets the vertical offset.
Value: The vertical offset.setVerticalOffset in interface IGradientFillSettingspublic int getFillType()
The fill type
getFillType in interface IFillSettingsgetFillType in class BaseFillSettingspublic final IGradientColorPoint[] getColorPoints()
Gets or sets the color points.
Value: The color points.getColorPoints in interface IGradientFillSettingspublic final void setColorPoints(IGradientColorPoint[] value)
Gets or sets the color points.
Value: The color points.setColorPoints in interface IGradientFillSettingspublic final IGradientTransparencyPoint[] getTransparencyPoints()
Gets or sets the transparency points.
Value: The transparency points.getTransparencyPoints in interface IGradientFillSettingspublic final void setTransparencyPoints(IGradientTransparencyPoint[] value)
Gets or sets the transparency points.
Value: The transparency points.setTransparencyPoints in interface IGradientFillSettingspublic static List<OSTypeStructure> generateLfx2ResourceNodes()
Generates the LFX2 resource nodes.
OSTypeStructurepublic final GradientColorPoint addColorPoint()
Adds the color point.
public final GradientTransparencyPoint addTransparencyPoint()
Adds the color point.
public final void removeTransparencyPoint(IGradientTransparencyPoint point)
Removes the transparency point.
point - The point.public final void removeColorPoint(IGradientColorPoint point)
Removes the color point.
point - The point.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.