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
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

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