public abstract class LinkResource extends LayerResource
Defines the LinkResource class that contains information about linked or embedded files in the PSD format image.
The link resource may contain several LinkDataSource instances which can be accessed by indexers in any derived class.
##Aspose#PSD#FileFormats#Psd#Layers| Modifier and Type | Field and Description |
|---|---|
static int |
LengthOfResourceLengthField
The length of total resource length field.
|
static int |
LengthOSourceLengthField
The length of data source length field.
|
PsbResourceSignature, ResourceSignature| Modifier and Type | Method and Description |
|---|---|
LinkDataSource |
get_Item(int index)
Gets the
LinkDataSource at the specified index. |
LinkDataSource |
get_Item(UUID index)
Gets the
LinkDataSource at the specified index which is the link data source unique identifier.. |
int |
getDataSourceCount()
Gets the count of link data sources which can be accessed by the indexer.
|
int |
getLength()
Gets the PSD global link resource length in bytes.
|
int |
getPsdVersion()
Gets the PSD format version.
|
int |
getSignature()
Gets the PSD global link resource signature.
|
boolean |
isEmpty()
Gets a value indicating whether this link resource instance is empty.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource block data.
|
getKey, toStringpublic static final int LengthOfResourceLengthField
The length of total resource length field.
public static final int LengthOSourceLengthField
The length of data source length field.
public final boolean isEmpty()
Gets a value indicating whether this link resource instance is empty.
Value:true if this link resource is empty; otherwise, false.public int getSignature()
Gets the PSD global link resource signature.
getSignature in class LayerResourcepublic int getLength()
Gets the PSD global link resource length in bytes.
getLength in class LayerResourcepublic final int getDataSourceCount()
Gets the count of link data sources which can be accessed by the indexer.
Value: The data source count.public int getPsdVersion()
Gets the PSD format version.
getPsdVersion in class LayerResourcepublic final LinkDataSource get_Item(UUID index)
Gets the LinkDataSource at the specified index which is the link data source unique identifier..
index - The index as link data source unique identifier.
Value:
The LinkDataSource.LinkDataSource instance.public LinkDataSource get_Item(int index)
Gets the LinkDataSource at the specified index.
index - The integer index.
Value:
The LinkDataSource.LinkDataSource instance.public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource block data.
save in class LayerResourcestreamContainer - The stream container to save to.psdVersion - The PSD version.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.