Packages

 

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

Class IopaResource



  • public class IopaResource
    extends LayerResource

    Class IopaResource. This resource contains information about the fill opacity property from the layer style form

    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

      • IopaResource

        public IopaResource()

        Initializes a new instance of the IopaResource class.

      • IopaResource

        public IopaResource(byte[] data)

        Initializes a new instance of the IopaResource class.

        Parameters:
        data - The raw byte data.
        Throws:
        PsdImageArgumentException - Invalid iOpa Resource data. Expected length of iOpaResource is 4
    • Method Detail

      • getFillOpacity

        public final byte getFillOpacity()

        Gets the fill opacity.

        Returns:
        the fill opacity.
      • setFillOpacity

        public final void setFillOpacity(byte value)

        Sets the fill opacity.

        Parameters:
        value - the fill opacity.
      • getSignature

        public int getSignature()

        Gets the signature.

        Specified by:
        getSignature in class LayerResource
        Returns:
        the 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 psd version.

        Specified by:
        getPsdVersion in class LayerResource
        Returns:
        the psd version.
      • 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.