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 |
---|---|
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, toString
public 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 LayerResource
public int getLength()
Gets the PSD global link resource length in bytes.
getLength
in class LayerResource
public 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 LayerResource
public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource block data.
save
in class LayerResource
streamContainer
- The stream container to save to.psdVersion
- The PSD version.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.