public class GdFlResource extends FillLayerResource
Class GdFlResource. This resource contains information about blending of clipped element.
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_TOOL_KEY
The type tool info key.
|
PSB_RESOURCE_SIGNATURE, RESOURCE_SIGNATURE
Constructor and Description |
---|
GdFlResource()
Initializes a new instance of the
GdFlResource class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getAlignWithLayer()
Gets a value indicating whether [align with layer].
|
double |
getAngle()
Gets the angle.
|
Color |
getColor()
Gets the color of the RGB.
|
IGradientColorPoint[] |
getColorPoints()
Gets the color points.
|
boolean |
getDither()
Gets a value indicating whether this
GdFlResource is dither. |
double |
getGradientInterval()
Gets the gradient interval.
|
String |
getGradientName()
Gets the name of the gradient.
|
int |
getGradientType()
Gets the type of the gradient.
|
double |
getHorizontalOffset()
Gets the horizontal offset.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getPsdVersion()
Gets the minimal psd version required for layer resource.
|
boolean |
getReverse()
Gets a value indicating whether this
GdFlResource is reverse. |
int |
getSignature()
Gets the layer resource signature.
|
IGradientTransparencyPoint[] |
getTransparencyPoints()
Gets the transparency points.
|
double |
getVerticalOffset()
Gets the vertical offset.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setAlignWithLayer(boolean value)
Sets a value indicating whether [align with layer].
|
void |
setAngle(double value)
Sets the angle.
|
void |
setColor(Color value)
The color of the RGB.
|
void |
setColorPoints(IGradientColorPoint[] value)
The color points.
|
void |
setDither(boolean value)
Sets a value indicating whether this
GdFlResource is dither. |
void |
setGradientInterval(double value)
Sets the gradient interval.
|
void |
setGradientName(String value)
Sets the name of the gradient.
|
void |
setGradientType(int value)
Sets the type of the gradient.
|
void |
setHorizontalOffset(double value)
Sets the horizontal offset.
|
void |
setReverse(boolean value)
Sets a value indicating whether this
GdFlResource is reverse. |
void |
setTransparencyPoints(IGradientTransparencyPoint[] value)
The transparency points.
|
void |
setVerticalOffset(double value)
Sets the vertical offset.
|
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public GdFlResource()
Initializes a new instance of the GdFlResource
class.
public final Color getColor()
Gets the color of the RGB.
public final void setColor(Color value)
The color of the RGB.
value
- the color of the RGB.public int getSignature()
Gets the layer resource signature.
getSignature
in class FillLayerResource
public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
public int getPsdVersion()
Gets the minimal psd version required for layer resource. 0 indicates no restrictions.
getPsdVersion
in class LayerResource
public final double getAngle()
Gets the angle.
Value: The angle.public final void setAngle(double value)
Sets the angle.
Value: The angle.value
- the angle.public final double getHorizontalOffset()
Gets the horizontal offset.
Value: The horizontal offset.public final void setHorizontalOffset(double value)
Sets the horizontal offset.
Value: The horizontal offset.value
- the horizontal offset.public final double getVerticalOffset()
Gets the vertical offset.
Value: The vertical offset.public final void setVerticalOffset(double value)
Sets the vertical offset.
Value: The vertical offset.value
- the vertical offset.public final int getGradientType()
Gets the type of the gradient.
Value: The type of the gradient.public final void setGradientType(int value)
Sets the type of the gradient.
Value: The type of the gradient.value
- the type of the gradient.public final IGradientColorPoint[] getColorPoints()
Gets the color points.
Value: The color points.public final void setColorPoints(IGradientColorPoint[] value)
The color points.
Value: The color points.value
- the color points.public final IGradientTransparencyPoint[] getTransparencyPoints()
Gets the transparency points.
Value: The transparency points.public final void setTransparencyPoints(IGradientTransparencyPoint[] value)
The transparency points.
Value: The transparency points.value
- the transparency points.public final String getGradientName()
Gets the name of the gradient.
Value: The name of the gradient.public final void setGradientName(String value)
Sets the name of the gradient.
Value: The name of the gradient.value
- the name of the gradient.public final double getGradientInterval()
Gets the gradient interval.
Value: The gradient interval.public final void setGradientInterval(double value)
Sets the gradient interval.
Value: The gradient interval.value
- the gradient interval.public final boolean getReverse()
Gets a value indicating whether this GdFlResource
is reverse.
true
if reverse; otherwise, false
.GdFlResource
is reverse.public final void setReverse(boolean value)
Sets a value indicating whether this GdFlResource
is reverse.
true
if reverse; otherwise, false
.value
- a value indicating whether this GdFlResource
is reverse.public final boolean getDither()
Gets a value indicating whether this GdFlResource
is dither.
true
if dither; otherwise, false
.GdFlResource
is dither.public final void setDither(boolean value)
Sets a value indicating whether this GdFlResource
is dither.
true
if dither; otherwise, false
.value
- a value indicating whether this GdFlResource
is dither.public final boolean getAlignWithLayer()
Gets a value indicating whether [align with layer].
Value:true
if [align with layer]; otherwise, false
.public final void setAlignWithLayer(boolean value)
Sets a value indicating whether [align with layer].
Value:true
if [align with layer]; otherwise, false
.value
- a value indicating whether [align with layer].public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
save
in class LayerResource
streamContainer
- The stream container to save to.psdVersion
- The PSD version.