Class PathStructure

PathStructure class

The path structure.

public sealed class PathStructure : OSTypeStructure

Constructors

NameDescription
PathStructure(ClassID)Initializes a new instance of the PathStructure class.

Properties

NameDescription
override Key { get; }Gets the structure key.
KeyName { get; set; }Gets or sets the key name.
override Length { get; }Gets the OSTypeStructure length in bytes.
Path { get; set; }Gets or sets the path.
Prefix { get; set; }Gets or sets the path prefix.

Methods

NameDescription
virtual GetHeaderLength()Gets the header length.
Save(StreamContainer)Saves the structure to the specified stream container.
SaveWithoutKeyName(StreamContainer)Saves the structure to the specified stream container.

Fields

NameDescription
const StructureKeyIdentifies the structure key.

Examples

The following code demonstrates ability to load file with PathStructure structure.

[C#]

string srcFile = "shirt-color.psd";
string output = "output.psd";

using (PsdImage image = (PsdImage)Image.Load(srcFile))
{
    image.Save(output);
}

See Also