---
title: "PsdReader Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_Psd_PsdReader.htm
product: "Graphics Mill"
---

# PsdReader Class
 
Contains methods and properties used to read PSD images.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs.Psd](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs_Psd.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public sealed class PsdReader : ImageReader
```
 
## Remarks
  
PSD (Photoshop Document) is a native bitmap file format of the Adobe® Photoshop® program using lossless data compression. This format is a de facto standard for designers all over the world. The PSD image format is rather complex and stores a lot of layers and additional data (image layers, text layers, applied effects, etc.).
 
## Examples
  
The following code opens a PSD file, iterates through its layers, and saves bitmaps from the raster layers to separate PNG files:
 
```csharp
//create PSD reader
using (var reader = new PsdReader(@"Images\BusinessCard.psd"))
{
    //read layers and save raster layers in PNG files
    for (int i = 0; i < reader.Frames.Count; i++)
    {
        using (var frame = reader.Frames[i])
        {
            Console.WriteLine("Frame " + frame.Index + " is processing. Frame type is " + frame.Type + ".");

            if (frame.Type == FrameType.Raster)
            {
                using (var bitmap = frame.GetBitmap())
                {
                    bitmap.Save(@"Images\Output\frame_" + i + ".png");
                }
            }
        }
    }
}
```
 
## Inheritance Hierarchy
  
- System.Object
    - [Aurigma.GraphicsMill.PipelineElement](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_PipelineElement.htm.md)
        - [Aurigma.GraphicsMill.Codecs.ImageReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_ImageReader.htm.md)
            - Aurigma.GraphicsMill.Codecs.Psd.PsdReader
 
## Thread Safety
 Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [PsdReader Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Codecs_Psd_PsdReader.htm.md)
- [Aurigma.GraphicsMill.Codecs.Psd Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs_Psd.htm.md)

### Manual

- [Supported File Formats](https://www.graphicsmill.com/docs/gm/supported-file-formats.htm.md)
- [Working with Photoshop (PSD) Files](https://www.graphicsmill.com/docs/gm/working-with-psd-files.htm.md)
