ILayerResourceLoader
public interface ILayerResourceLoader
The layer resource loader.
Methods
Method | Description |
---|---|
canLoad(StreamContainer streamContainer, int psdVersion) | Determines whether layer resource can be loaded from the specified StreamContainer . |
load(StreamContainer streamContainer, int psdVersion) | Loads the LayerResource. |
canLoad(StreamContainer streamContainer, int psdVersion)
public abstract boolean canLoad(StreamContainer streamContainer, int psdVersion)
Determines whether layer resource can be loaded from the specified StreamContainer .
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
psdVersion | int | The PSD version. |
Returns: boolean - true if layer resource can be loaded from the specified StreamContainer ; otherwise, false .
load(StreamContainer streamContainer, int psdVersion)
public abstract LayerResource load(StreamContainer streamContainer, int psdVersion)
Loads the LayerResource.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container to load from. |
psdVersion | int | The PSD version. |
Returns: LayerResource - The loaded resource.