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

ConstructorDescription
GdFlResource()Initializes a new instance of the .GdFlResource class.

Fields

FieldDescription
DefaultScale_internalizedThe default scale.
PsbHeaderVersion_internalizedThe PSB header version
PsbResourceSignatureThe PSB-specific resource signature.
PsdHeaderVersion_internalizedThe PSD header version
ResourceSignatureThe common resource signature.
TypeToolKeyThe type tool info key.
ventureLicense_internalizedThe venture license.

Methods

MethodDescription
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()
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)
setColorModel(String value)Color Model - RGB/HSB/LAB (“RGBC”/“HSBl”/“LbCl”).
setColorPoints(IGradientColorPoint[] value)
setDither(boolean value)Gets or sets a value indicating whether this GdFlResource is dither.
setGradientInterval(double value)
setGradientMode(String value)Mode for this gradient.
setGradientName(String value)
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)
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(int value)
setShowTransparency(boolean value)Flag for showing transparency.
setTransparencyPoints(IGradientTransparencyPoint[] value)
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:

ParameterTypeDescription
structureOSTypeStructureThe 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:

ParameterTypeDescription
keyintThe key.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
psdVersionintThe 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:

ParameterTypeDescription
keyintThe 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:

ParameterTypeDescription
streamContainerStreamContainerThe stream container to save to.
psdVersionintThe PSD version.

saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)

public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)

Saves the custom resource header.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.
signatureintThe 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:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.
signatureintThe signature.
isLengthLongbooleanif 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:

ParameterTypeDescription
valueboolean

setAngle(double value)

public void setAngle(double value)

Parameters:

ParameterTypeDescription
valuedouble

setColor(Color value)

public void setColor(Color value)

Parameters:

ParameterTypeDescription
valueColor

setColorModel(String value)

public final void setColorModel(String value)

Color Model - RGB/HSB/LAB (“RGBC”/“HSBl”/“LbCl”).

Parameters:

ParameterTypeDescription
valuejava.lang.String

setColorPoints(IGradientColorPoint[] value)

public void setColorPoints(IGradientColorPoint[] value)

Parameters:

ParameterTypeDescription
valueIGradientColorPoint[]

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:

ParameterTypeDescription
valueboolean

setGradientInterval(double value)

public void setGradientInterval(double value)

Parameters:

ParameterTypeDescription
valuedouble

setGradientMode(String value)

public final void setGradientMode(String value)

Mode for this gradient. Determines ‘Gradient Type’ = ‘Solid/Noise’ = “CstS”/“ClNs”.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setGradientName(String value)

public void setGradientName(String value)

Parameters:

ParameterTypeDescription
valuejava.lang.String

setGradientType(int value)

public void setGradientType(int value)

Parameters:

ParameterTypeDescription
valueint

setHeader_internalized(PsdHeader value)

public final void setHeader_internalized(PsdHeader value)

Gets or sets the header.

Value: The header.

Parameters:

ParameterTypeDescription
valuecom.aspose.internal.fileformats.psd.sections.PsdHeader

setHorizontalOffset(double value)

public void setHorizontalOffset(double value)

Parameters:

ParameterTypeDescription
valuedouble

setMaximumColor(RawColor value)

public final void setMaximumColor(RawColor value)

Maximum color of PixelDataFormat.

Parameters:

ParameterTypeDescription
valueRawColor

setMinimumColor(RawColor value)

public final void setMinimumColor(RawColor value)

Minimum color of PixelDataFormat.

Parameters:

ParameterTypeDescription
valueRawColor

setOffset_internalized(OffsetEntity value)

public void setOffset_internalized(OffsetEntity value)

Parameters:

ParameterTypeDescription
valuecom.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:

ParameterTypeDescription
valueboolean

setRndNumberSeed(int value)

public final void setRndNumberSeed(int value)

The random number seed used to generate colors for Noise gradient.

Parameters:

ParameterTypeDescription
valueint

setRoughness(int value)

public final void setRoughness(int value)

Roughness factor.

Parameters:

ParameterTypeDescription
valueint

setScale(int value)

public void setScale(int value)

Parameters:

ParameterTypeDescription
valueint

setShowTransparency(boolean value)

public final void setShowTransparency(boolean value)

Flag for showing transparency.

Parameters:

ParameterTypeDescription
valueboolean

setTransparencyPoints(IGradientTransparencyPoint[] value)

public void setTransparencyPoints(IGradientTransparencyPoint[] value)

Parameters:

ParameterTypeDescription
valueIGradientTransparencyPoint[]

setUseVectorColor(boolean value)

public final void setUseVectorColor(boolean value)

Flag for using vector color.

Parameters:

ParameterTypeDescription
valueboolean

setVerticalOffset(double value)

public void setVerticalOffset(double value)

Parameters:

ParameterTypeDescription
valuedouble

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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int