Class NvrtResource
NvrtResource class
Class NvrtResource. Resource of Invert Adjustment Layer.
public class NvrtResource : AdjustmentLayerResource
Constructors
Name | Description |
---|
NvrtResource() | Initializes a new instance of the NvrtResource class. |
NvrtResource(byte[]) | Initializes a new instance of the NvrtResource class. |
Properties
Name | Description |
---|
Key { get; } | Gets the layer resource key. |
override Length { get; } | Gets the layer resource length in bytes. |
PsdVersion { get; } | Gets the minimal psd version required for layer resource. 0 indicates no restrictions. |
virtual Signature { get; } | Gets the signature. |
Methods
Name | Description |
---|
override Save(StreamContainer, int) | Saves the resource to the specified stream container. |
override ToString() | Returns a String that represents this instance. |
Fields
Name | Description |
---|
const TypeToolKey | The type tool info key. |
Examples
The following example demonstrates how to get NvrtResource.
[C#]
string sourceFilePath = "InvertAdjustmentLayer.psd";
NvrtResource resource = null;
using (PsdImage psdImage = (PsdImage)Image.Load(sourceFilePath))
{
foreach (Aspose.PSD.FileFormats.Psd.Layers.Layer layer in psdImage.Layers)
{
if (layer is InvertAdjustmentLayer)
{
foreach (Aspose.PSD.FileFormats.Psd.Layers.LayerResource layerResource in layer.Resources)
{
if (layerResource is NvrtResource)
{
// The NvrtResource is supported.
resource = (NvrtResource)layerResource;
break;
}
}
}
}
}
See Also