GdFlResource
Inheritance: java.lang.Object, com.aspose.psd.fileformats.psd.layers.LayerResource, com.aspose.psd.fileformats.psd.layers.layerresources.FillLayerResource
public class GdFlResource extends FillLayerResource
Class GdFlResource. This resource contains information about blending of clipped element.
Constructors
Constructor | Description |
---|---|
GdFlResource() | Initializes a new instance of the .GdFlResource class. |
Fields
Field | Description |
---|---|
DefaultScale_internalized | The default scale. |
PsbHeaderVersion_internalized | The PSB header version |
PsbResourceSignature | The PSB-specific resource signature. |
PsdHeaderVersion_internalized | The PSD header version |
ResourceSignature | The common resource signature. |
TypeToolKey | The type tool info key. |
ventureLicense_internalized | The venture license. |
Methods
GdFlResource()
public GdFlResource()
Initializes a new instance of the .GdFlResource class.
DefaultScale_internalized
public static final int DefaultScale_internalized
The default scale.
PsbHeaderVersion_internalized
public static final int PsbHeaderVersion_internalized
The PSB header version
PsbResourceSignature
public static final int PsbResourceSignature
The PSB-specific resource signature.
PsdHeaderVersion_internalized
public static final int PsdHeaderVersion_internalized
The PSD header version
ResourceSignature
public static final int ResourceSignature
The common resource signature.
TypeToolKey
public static final int TypeToolKey
The type tool info key.
ventureLicense_internalized
public Object ventureLicense_internalized
The venture license.
addUnknownStructure_internalized(OSTypeStructure structure)
public void addUnknownStructure_internalized(OSTypeStructure structure)
Adds the unknown structure.
Parameters:
Parameter | Type | Description |
---|---|---|
structure | OSTypeStructure | The structure. |
checkAndSetIfResourceIsPsbSpecific_internalized(int key)
public final void checkAndSetIfResourceIsPsbSpecific_internalized(int key)
Checks the and set if resource is PSB specific. Some resources are not recognized for now, but we have full list of PSB specific resources which changes their behaviour on save. So we need to check this in UnknownResource at least
Parameters:
Parameter | Type | Description |
---|---|---|
key | int | The key. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
generateDefaultControlPoints_internalized()
public static IGradientColorPoint[] generateDefaultControlPoints_internalized()
Generates the default control points.
Returns: com.aspose.psd.fileformats.psd.layers.IGradientColorPoint[] - The default control points.
generateDefaultTransparencyPoints_internalized()
public static IGradientTransparencyPoint[] generateDefaultTransparencyPoints_internalized()
Generates the default transparency points.
Returns: com.aspose.psd.fileformats.psd.layers.fillsettings.IGradientTransparencyPoint[] - The default transparency points.
getAlignWithLayer()
public final boolean getAlignWithLayer()
Gets or sets a value indicating whether [align with layer].
Value: true if [align with layer]; otherwise, false .
Returns: boolean
getAngle()
public double getAngle()
Gets or sets the angle.
The angle.
Returns: double
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getColor()
public Color getColor()
Returns: Color
getColorModel()
public final String getColorModel()
Color Model - RGB/HSB/LAB (“RGBC”/“HSBl”/“LbCl”).
Returns: java.lang.String
getColorPoints()
public IGradientColorPoint[] getColorPoints()
Gets the color points.
The color points.
Returns: com.aspose.psd.fileformats.psd.layers.IGradientColorPoint[]
getDither()
public final boolean getDither()
Gets or sets a value indicating whether this GdFlResource is dither.
Value: true if dither; otherwise, false .
Returns: boolean
getGradientInterval()
public double getGradientInterval()
Gets or sets the gradient interval.
The gradient interval.
Returns: double
getGradientMode()
public final String getGradientMode()
Mode for this gradient. Determines ‘Gradient Type’ = ‘Solid/Noise’ = “CstS”/“ClNs”.
Returns: java.lang.String
getGradientName()
public String getGradientName()
Gets or sets the name of the gradient.
The name of the gradient.
Returns: java.lang.String
getGradientType()
public int getGradientType()
Returns: int
getHeader_internalized()
public final PsdHeader getHeader_internalized()
Gets or sets the header.
Value: The header.
Returns: com.aspose.internal.fileformats.psd.sections.PsdHeader
getHorizontalOffset()
public double getHorizontalOffset()
Gets or sets the horizontal offset.
The horizontal offset.
Returns: double
getKey()
public int getKey()
Gets the layer resource key.
Returns: int
getLength()
public int getLength()
Gets the layer resource length in bytes.
Returns: int
getMaximumColor()
public final RawColor getMaximumColor()
Maximum color of PixelDataFormat.
Returns: RawColor
getMinimumColor()
public final RawColor getMinimumColor()
Minimum color of PixelDataFormat.
Returns: RawColor
getOffset_internalized()
public OffsetEntity getOffset_internalized()
Gets or sets the offset.
The offset.
Returns: com.aspose.internal.fileformats.psd.layers.layerresources.lfx2resources.OffsetEntity
getPrefixLength_internalized(int psdVersion)
public final int getPrefixLength_internalized(int psdVersion)
Gets the prefix length. Default value is 12 for 8BIM resources. and 16 for 8B64
Parameters:
Parameter | Type | Description |
---|---|---|
psdVersion | int | The PSD version. |
Returns: int - The Prefix Length.
getPsdVersion()
public int getPsdVersion()
Gets the minimal psd version required for layer resource. 0 indicates no restrictions.
Returns: int
getReverse()
public final boolean getReverse()
Gets or sets a value indicating whether this GdFlResource is reverse.
Value: true if reverse; otherwise, false .
Returns: boolean
getRndNumberSeed()
public final int getRndNumberSeed()
The random number seed used to generate colors for Noise gradient.
Returns: int
getRoughness()
public final int getRoughness()
Roughness factor.
Returns: int
getScale()
public int getScale()
Gets or sets the scale.
The scale.
Returns: int
getShowTransparency()
public final boolean getShowTransparency()
Flag for showing transparency.
Returns: boolean
getSignature()
public int getSignature()
Gets the layer resource signature.
Returns: int
getTransparencyPoints()
public IGradientTransparencyPoint[] getTransparencyPoints()
Gets the transparency points.
The transparency points.
Returns: com.aspose.psd.fileformats.psd.layers.fillsettings.IGradientTransparencyPoint[]
getUseVectorColor()
public final boolean getUseVectorColor()
Flag for using vector color.
Returns: boolean
getVerticalOffset()
public double getVerticalOffset()
Gets or sets the vertical offset.
The vertical offset.
Returns: double
hashCode()
public native int hashCode()
Returns: int
isResourcePsbSpecificByKey_internalized(int key)
public static boolean isResourcePsbSpecificByKey_internalized(int key)
Determines whether the resource is PSB specific.
Parameters:
Parameter | Type | Description |
---|---|---|
key | int | The resource key. |
Returns: boolean - true if the resource is PSB specific; otherwise, false .
isResourcePsbSpecific_internalized()
public final boolean isResourcePsbSpecific_internalized()
Gets a value indicating whether this instance is resource PSB specific.
Value: true if this instance is resource PSB specific; otherwise, false .
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
save(StreamContainer streamContainer, int psdVersion)
public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container to save to. |
psdVersion | int | The PSD version. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)
public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)
Saves the custom resource header.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
signature | int | The signature. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong)
public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong)
Saves the header signature, identifier and length.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
signature | int | The signature. |
isLengthLong | boolean | if set to true length is long. |
setAlignWithLayer(boolean value)
public final void setAlignWithLayer(boolean value)
Gets or sets a value indicating whether [align with layer].
Value: true if [align with layer]; otherwise, false .
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setAngle(double value)
public void setAngle(double value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setColor(Color value)
public void setColor(Color value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color |
setColorModel(String value)
public final void setColorModel(String value)
Color Model - RGB/HSB/LAB (“RGBC”/“HSBl”/“LbCl”).
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setColorPoints(IGradientColorPoint[] value)
public void setColorPoints(IGradientColorPoint[] value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | IGradientColorPoint[] |
setDither(boolean value)
public final void setDither(boolean value)
Gets or sets a value indicating whether this GdFlResource is dither.
Value: true if dither; otherwise, false .
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setGradientInterval(double value)
public void setGradientInterval(double value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setGradientMode(String value)
public final void setGradientMode(String value)
Mode for this gradient. Determines ‘Gradient Type’ = ‘Solid/Noise’ = “CstS”/“ClNs”.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setGradientName(String value)
public void setGradientName(String value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setGradientType(int value)
public void setGradientType(int value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setHeader_internalized(PsdHeader value)
public final void setHeader_internalized(PsdHeader value)
Gets or sets the header.
Value: The header.
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.aspose.internal.fileformats.psd.sections.PsdHeader |
setHorizontalOffset(double value)
public void setHorizontalOffset(double value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setMaximumColor(RawColor value)
public final void setMaximumColor(RawColor value)
Maximum color of PixelDataFormat.
Parameters:
Parameter | Type | Description |
---|---|---|
value | RawColor |
setMinimumColor(RawColor value)
public final void setMinimumColor(RawColor value)
Minimum color of PixelDataFormat.
Parameters:
Parameter | Type | Description |
---|---|---|
value | RawColor |
setOffset_internalized(OffsetEntity value)
public void setOffset_internalized(OffsetEntity value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.aspose.internal.fileformats.psd.layers.layerresources.lfx2resources.OffsetEntity |
setReverse(boolean value)
public final void setReverse(boolean value)
Gets or sets a value indicating whether this GdFlResource is reverse.
Value: true if reverse; otherwise, false .
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setRndNumberSeed(int value)
public final void setRndNumberSeed(int value)
The random number seed used to generate colors for Noise gradient.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setRoughness(int value)
public final void setRoughness(int value)
Roughness factor.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setScale(int value)
public void setScale(int value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setShowTransparency(boolean value)
public final void setShowTransparency(boolean value)
Flag for showing transparency.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setTransparencyPoints(IGradientTransparencyPoint[] value)
public void setTransparencyPoints(IGradientTransparencyPoint[] value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | IGradientTransparencyPoint[] |
setUseVectorColor(boolean value)
public final void setUseVectorColor(boolean value)
Flag for using vector color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setVerticalOffset(double value)
public void setVerticalOffset(double value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
toString()
public String toString()
Returns a String that represents this instance.
Returns: java.lang.String - A String that represents this instance.
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |