Packages

 

com.aspose.psd.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

      • TypeToolKey

        public static final int TypeToolKey

        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 or sets the fill opacity.

        Value: The fill opacity.
      • setFillOpacity

        public final void setFillOpacity(byte value)

        Gets or sets the fill opacity.

        Value: The fill opacity.
      • getKey

        public int getKey()

        Gets the layer resource key.

        Specified by:
        getKey in class LayerResource
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

        Specified by:
        getLength in class LayerResource
      • 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.