com.aspose.imaging.fileformats.psd.resources
Class TransparencyIndexResource

java.lang.Object
  extended by com.aspose.imaging.fileformats.psd.ResourceBlock
      extended by com.aspose.imaging.fileformats.psd.resources.TransparencyIndexResource

public class TransparencyIndexResource
extends ResourceBlock

The transparency index resource block.


Field Summary
static int RequiredVersion
           The required psd version.
 
Constructor Summary
TransparencyIndexResource()
           Initializes a new instance of the TransparencyIndexResource class.
 
Method Summary
 int getDataSize()
           Gets the resource data size in bytes.
 int getMinimalVersion()
           Gets the minimal required psd version.
 short getTransparencyIndex()
           Gets the transparency color index.
protected  void saveData(StreamContainer streamContainer)
           Saves the resource block data.
 void setTransparencyIndex(short value)
           Sets the transparency color index.
 
Methods inherited from class com.aspose.imaging.fileformats.psd.ResourceBlock
getID, getName, getSignature, getSize, save, setID, setName, validateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RequiredVersion

public static final int RequiredVersion

The required psd version.

See Also:
Constant Field Values
Constructor Detail

TransparencyIndexResource

public TransparencyIndexResource()

Initializes a new instance of the TransparencyIndexResource class.

Method Detail

getDataSize

public int getDataSize()

Gets the resource data size in bytes.

Value: The resource data size.

Specified by:
getDataSize in class ResourceBlock

getMinimalVersion

public int getMinimalVersion()

Gets the minimal required psd version.

Value: The minimal psd version.

Specified by:
getMinimalVersion in class ResourceBlock

getTransparencyIndex

public short getTransparencyIndex()

Gets the transparency color index.

Value: The transparency color index.


saveData

protected void saveData(StreamContainer streamContainer)

Saves the resource block data.

Specified by:
saveData in class ResourceBlock
Parameters:
streamContainer - The stream container to save to.

setTransparencyIndex

public void setTransparencyIndex(short value)

Sets the transparency color index.

Value: The transparency color index.