Packages

 

com.aspose.imaging.fileformats.psd.layers.layerresources

Class GdFlResource



  • public class GdFlResource
    extends FillLayerResource

    Class GdFlResource. This resource contains information about blending of clipped element.

    See Also:
    LayerResource
    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • GdFlResource

        public GdFlResource()

        Initializes a new instance of the GdFlResource class.

    • Method Detail

      • getColor

        public final Color getColor()

        Gets the color of the RGB.

        Returns:
        The RGB Color
      • setColor

        public final void setColor(Color value)

        The color of the RGB.

        Parameters:
        value - the color of the RGB.
      • getSignature

        public int getSignature()

        Gets the layer resource signature.

        Overrides:
        getSignature in class FillLayerResource
        Returns:
        the layer resource signature.
      • getKey

        public int getKey()

        Gets the layer resource key.

        Specified by:
        getKey in class LayerResource
        Returns:
        the layer resource key.
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

        Specified by:
        getLength in class LayerResource
        Returns:
        the layer resource length in bytes.
      • getPsdVersion

        public int getPsdVersion()

        Gets the minimal psd version required for layer resource. 0 indicates no restrictions.

        Specified by:
        getPsdVersion in class LayerResource
        Returns:
        the minimal psd version required for layer resource.
      • getAngle

        public final double getAngle()

        Gets the angle.

        Value: The angle.
        Returns:
        the angle.
      • setAngle

        public final void setAngle(double value)

        Sets the angle.

        Value: The angle.
        Parameters:
        value - the angle.
      • getHorizontalOffset

        public final double getHorizontalOffset()

        Gets the horizontal offset.

        Value: The horizontal offset.
        Returns:
        the horizontal offset.
      • setHorizontalOffset

        public final void setHorizontalOffset(double value)

        Sets the horizontal offset.

        Value: The horizontal offset.
        Parameters:
        value - the horizontal offset.
      • getVerticalOffset

        public final double getVerticalOffset()

        Gets the vertical offset.

        Value: The vertical offset.
        Returns:
        the vertical offset.
      • setVerticalOffset

        public final void setVerticalOffset(double value)

        Sets the vertical offset.

        Value: The vertical offset.
        Parameters:
        value - the vertical offset.
      • getGradientType

        public final int getGradientType()

        Gets the type of the gradient.

        Value: The type of the gradient.
        Returns:
        the type of the gradient.
      • setGradientType

        public final void setGradientType(int value)

        Sets the type of the gradient.

        Value: The type of the gradient.
        Parameters:
        value - the type of the gradient.
      • getColorPoints

        public final IGradientColorPoint[] getColorPoints()

        Gets the color points.

        Value: The color points.
        Returns:
        the color points.
      • setColorPoints

        public final void setColorPoints(IGradientColorPoint[] value)

        The color points.

        Value: The color points.
        Parameters:
        value - the color points.
      • getTransparencyPoints

        public final IGradientTransparencyPoint[] getTransparencyPoints()

        Gets the transparency points.

        Value: The transparency points.
        Returns:
        the transparency points.
      • setTransparencyPoints

        public final void setTransparencyPoints(IGradientTransparencyPoint[] value)

        The transparency points.

        Value: The transparency points.
        Parameters:
        value - the transparency points.
      • getGradientName

        public final String getGradientName()

        Gets the name of the gradient.

        Value: The name of the gradient.
        Returns:
        the name of the gradient.
      • setGradientName

        public final void setGradientName(String value)

        Sets the name of the gradient.

        Value: The name of the gradient.
        Parameters:
        value - the name of the gradient.
      • getGradientInterval

        public final double getGradientInterval()

        Gets the gradient interval.

        Value: The gradient interval.
        Returns:
        the gradient interval.
      • setGradientInterval

        public final void setGradientInterval(double value)

        Sets the gradient interval.

        Value: The gradient interval.
        Parameters:
        value - the gradient interval.
      • getReverse

        public final boolean getReverse()

        Gets a value indicating whether this GdFlResource is reverse.

        Value: true if reverse; otherwise, false.
        Returns:
        a value indicating whether this GdFlResource is reverse.
      • setReverse

        public final void setReverse(boolean value)

        Sets a value indicating whether this GdFlResource is reverse.

        Value: true if reverse; otherwise, false.
        Parameters:
        value - a value indicating whether this GdFlResource is reverse.
      • getDither

        public final boolean getDither()

        Gets a value indicating whether this GdFlResource is dither.

        Value: true if dither; otherwise, false.
        Returns:
        a value indicating whether this GdFlResource is dither.
      • setDither

        public final void setDither(boolean value)

        Sets a value indicating whether this GdFlResource is dither.

        Value: true if dither; otherwise, false.
        Parameters:
        value - a value indicating whether this GdFlResource is dither.
      • getAlignWithLayer

        public final boolean getAlignWithLayer()

        Gets a value indicating whether [align with layer].

        Value: true if [align with layer]; otherwise, false.
        Returns:
        a value indicating whether [align with layer].
      • setAlignWithLayer

        public final void setAlignWithLayer(boolean value)

        Sets a value indicating whether [align with layer].

        Value: true if [align with layer]; otherwise, false.
        Parameters:
        value - a value indicating whether [align with layer].
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)

        Saves the resource to the specified stream container.

        Specified by:
        save in class LayerResource
        Parameters:
        streamContainer - The stream container to save to.
        psdVersion - The PSD version.