- About Graphics Mill
- What's New?
- Breaking Changes in Graphics Mill 12
- Breaking Changes in Graphics Mill 11
- Features
- Supported File Formats
- System Requirements
- Getting Started
- Working with Image Formats
- Transforming Images (Resize, Rotate, Crop)
- Working with Metadata
- Color Management and Color Reduction
- Drawing Text and Graphics
- Color Keying (Green Screen Removal)
- Channels and Pixel Data
- Color and Tone Correction
- Working with Photoshop (PSD) Files
- Image Filters
- Processing Large Images
- Basics of Image Processing
- Troubleshooting
- Class Library Reference
- Aurigma.GraphicsMill Namespace
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Codecs.ClippingPath Namespace
- Aurigma.GraphicsMill.Codecs.Psd Namespace
- BlendMode Enumeration
- ColorOverlayEffect Class
- DigitType Enumeration
- DropShadowEffect Class
- Effect Class
- FontCaps Enumeration
- FrameType Enumeration
- GroupedFrameCollection Class
- InnerShadowEffect Class
- ITextSettings Interface
- ParagraphDirection Enumeration
- ParagraphSettings Structure
- PlainFrameCollection Class
- PsdFeature Enumeration
- PsdFrame Class
- PsdFrameEffects Class
- PsdGroupFrame Class
- PsdReader Class
- PsdShapeFrame Class
- PsdSmartFrame Class
- PsdSpotChannel Class
- PsdTextFrame Class
- PsdTextFrameRawSettings Structure
- ShadowEffect Class
- SpotChannelCollection Class
- StrokeEffect Class
- StrokePosition Enumeration
- TextJustification Enumeration
- TextSpan Class
- Aurigma.GraphicsMill.Drawing Namespace
- Aurigma.GraphicsMill.Drawing.Art Namespace
- Aurigma.GraphicsMill.Drawing.Effects Namespace
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Templates Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- Licensing
- End User License Agreement
- Copyright Notices
PsdReader Class
Contains methods and properties used to read PSD images.
Namespace:
Aurigma.GraphicsMill.Codecs.Psd
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
C#
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:
C#
//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
L
Aurigma.GraphicsMill.PipelineElement
L
Aurigma.GraphicsMill.Codecs.ImageReader
L
Aurigma.GraphicsMill.Codecs.Psd.PsdReader