Table of Contents

Class PsdFormat

Namespace
Egami.Formats.Psd
Assembly
Egami.dll

Adobe Photoshop's PSD and large-document PSB formats, read only, registered in Default. Load returns the flattened image Photoshop stores after the layers; the layers themselves are listed in Layers without their pixels.

public static class PsdFormat
Inheritance
PsdFormat
Inherited Members

Examples

// Load gives the flattened image Photoshop stores after the layers, in the type that fits the file: Rgb8 here, Rgba16 for
// a 16-bit file with transparency, Cmyk8 for CMYK. Save it as anything.
using Raster flat = Raster.Load("layered.psd");
flat.Save("layered.png");

// The ICC profile, resolution, EXIF, XMP and IPTC are in the metadata as for every format.
using Raster photo = Raster.Load("photo.psd");
ReadOnlyMemory<byte> icc = photo.Metadata.IccProfile;
Resolution? dpi = photo.Metadata.Resolution;

Properties

Info

Gets the format's registration: name, MIME type, extensions, signature and reader. It has no writer.

public static FormatInfo Info { get; }

Property Value

FormatInfo