Class NvrtResource

NvrtResource class

Class NvrtResource. Resource of Invert Adjustment Layer.

public class NvrtResource : AdjustmentLayerResource

Constructors

NameDescription
NvrtResource()Initializes a new instance of the NvrtResource class.
NvrtResource(byte[])Initializes a new instance of the NvrtResource class.

Properties

NameDescription
override Key { get; }Gets the layer resource key.
override Length { get; }Gets the layer resource length in bytes.
override PsdVersion { get; }Gets the PSD version.
override Signature { get; }Gets the signature.

Methods

NameDescription
override Save(StreamContainer, int)Saves the resource to the specified stream container.
override ToString()Returns a String that represents this instance.

Fields

NameDescription
const TypeToolKeyThe 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