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
| Method | Description |
|---|---|
| addUnknownStructure_internalized(OSTypeStructure structure) | Adds the unknown structure. |
| checkAndSetIfResourceIsPsbSpecific_internalized(int key) | Checks the and set if resource is PSB specific. |
| equals(Object arg0) | |
| generateDefaultControlPoints_internalized() | Generates the default control points. |
| generateDefaultTransparencyPoints_internalized() | Generates the default transparency points. |
| getAlignWithLayer() | Gets or sets a value indicating whether [align with layer]. |
| getAngle() | Gets or sets the angle. |
| getClass() | |
| getColor() | Gets the color of the RGB. |
| getColorModel() | Color Model - RGB/HSB/LAB (“RGBC”/“HSBl”/“LbCl”). |
| getColorPoints() | Gets the color points. |
| getDither() | Gets or sets a value indicating whether this GdFlResource is dither. |
| getGradientInterval() | Gets or sets the gradient interval. |
| getGradientMode() | Mode for this gradient. |
| getGradientName() | Gets or sets the name of the gradient. |
| getGradientType() | |
| getHeader_internalized() | Gets or sets the header. |
| getHorizontalOffset() | Gets or sets the horizontal offset. |
| getKey() | Gets the layer resource key. |
| getLength() | Gets the layer resource length in bytes. |
| getMaximumColor() | Maximum color of PixelDataFormat. |
| getMinimumColor() | Minimum color of PixelDataFormat. |
| getOffset_internalized() | Gets or sets the offset. |
| getPrefixLength_internalized(int psdVersion) | Gets the prefix length. |
| getPsdVersion() | Gets the minimal psd version required for layer resource. |
| getReverse() | Gets or sets a value indicating whether this GdFlResource is reverse. |
| getRndNumberSeed() | The random number seed used to generate colors for Noise gradient. |
| getRoughness() | Roughness factor. |
| getScale() | Gets or sets the scale. |
| getShowTransparency() | Flag for showing transparency. |
| getSignature() | Gets the layer resource signature. |
| getTransparencyPoints() | Gets the transparency points. |
| getUseVectorColor() | Flag for using vector color. |
| getVerticalOffset() | Gets or sets the vertical offset. |
| hashCode() | |
| isResourcePsbSpecificByKey_internalized(int key) | Determines whether the resource is PSB specific. |
| isResourcePsbSpecific_internalized() | Gets a value indicating whether this instance is resource PSB specific. |
| notify() | |
| notifyAll() | |
| save(StreamContainer streamContainer, int psdVersion) | Saves the resource to the specified stream container. |
| saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature) | Saves the custom resource header. |
| saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong) | Saves the header signature, identifier and length. |
| setAlignWithLayer(boolean value) | Gets or sets a value indicating whether [align with layer]. |
| setAngle(double value) | |
| setColor(Color value) | Gets the color of the RGB. |
| setColorModel(String value) | Color Model - RGB/HSB/LAB (“RGBC”/“HSBl”/“LbCl”). |
| setColorPoints(IGradientColorPoint[] value) | Gets the color points. |
| setDither(boolean value) | Gets or sets a value indicating whether this GdFlResource is dither. |
| setGradientInterval(double value) | Gets or sets the gradient interval. |
| setGradientMode(String value) | Mode for this gradient. |
| setGradientName(String value) | Gets or sets the name of the gradient. |
| setGradientType(int value) | |
| setHeader_internalized(PsdHeader value) | Gets or sets the header. |
| setHorizontalOffset(double value) | |
| setMaximumColor(RawColor value) | Maximum color of PixelDataFormat. |
| setMinimumColor(RawColor value) | Minimum color of PixelDataFormat. |
| setOffset_internalized(OffsetEntity value) | Gets or sets the offset. |
| setReverse(boolean value) | Gets or sets a value indicating whether this GdFlResource is reverse. |
| setRndNumberSeed(int value) | The random number seed used to generate colors for Noise gradient. |
| setRoughness(int value) | Roughness factor. |
| setScale(double value) | Gets or sets the scale. |
| setShowTransparency(boolean value) | Flag for showing transparency. |
| setTransparencyPoints(IGradientTransparencyPoint[] value) | Gets the transparency points. |
| setUseVectorColor(boolean value) | Flag for using vector color. |
| setVerticalOffset(double value) | |
| toString() | Returns a String that represents this instance. |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
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 final Color getColor()
Gets the color of the RGB.
Returns: Color - The RGB Color
getColorModel()
public final String getColorModel()
Color Model - RGB/HSB/LAB (“RGBC”/“HSBl”/“LbCl”).
Returns: java.lang.String
getColorPoints()
public final IGradientColorPoint[] getColorPoints()
Gets the color points.
Value: 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 final double getGradientInterval()
Gets or sets the gradient interval.
Value: 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.
Value: 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 final 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 final OffsetEntity getOffset_internalized()
Gets or sets the offset.
Value: 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 final 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 final double getScale()
Gets or sets the scale.
Returns: double
getShowTransparency()
public final boolean getShowTransparency()
Flag for showing transparency.
Returns: boolean
getSignature()
public int getSignature()
Gets the layer resource signature.
Returns: int
getTransparencyPoints()
public final IGradientTransparencyPoint[] getTransparencyPoints()
Gets the transparency points.
Value: 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 final void setColor(Color value)
Gets the color of the RGB.
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 final void setColorPoints(IGradientColorPoint[] value)
Gets the color points.
Value: The color points.
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 final void setGradientInterval(double value)
Gets or sets the gradient interval.
Value: The gradient interval.
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)
Gets or sets the name of the gradient.
Value: The name of the gradient.
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 final void setOffset_internalized(OffsetEntity value)
Gets or sets the offset.
Value: The offset.
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(double value)
public final void setScale(double value)
Gets or sets the scale.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double |
setShowTransparency(boolean value)
public final void setShowTransparency(boolean value)
Flag for showing transparency.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
setTransparencyPoints(IGradientTransparencyPoint[] value)
public final void setTransparencyPoints(IGradientTransparencyPoint[] value)
Gets the transparency points.
Value: The transparency points.
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 |