- 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
PsdTextFrame Class
Represents a PSD text layer.
Namespace:
Aurigma.GraphicsMill.Codecs.Psd
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
C#
public class PsdTextFrame : PsdFrame, ITextSettings
Remarks
The text layer is a particular case of a raster layer. It always contains the bitmap with a rasterized text string, as well as:
- The text string itself (the Text property).
- The font settings (the FontName and FontSize properties).
- Paragraph settings (such properties as LeftIndent(), RightIndent(), Justification, and others).
- The text color (the Color property).
- The text box (the TextBox property).
Typically you get an instance of this class in the following way:
Examples
The following code reads a PSD file, iterates through its layers, and writes some information about text layer to the console:
C#
//create PSD reader
using (var reader = new PsdReader(@"Images\BusinessCard.psd"))
{
//read layers and check for a text layer
for (int i = 0; i < reader.Frames.Count; i++)
{
using (var frame = reader.Frames[i])
{
if (frame.Type == FrameType.Text)
{
var textFrame = (PsdTextFrame) frame;
Console.WriteLine("Font name: " + textFrame.FontName);
Console.WriteLine("Font size: " + textFrame.FontSize);
Console.WriteLine("Text caps: " + textFrame.Caps);
Console.WriteLine("Text justification: " + textFrame.Justification);
Console.WriteLine("Paragraph first line indent: " + textFrame.Paragraph.FirstLineIndent);
Console.WriteLine("Text tracking: " + textFrame.Tracking);
Console.WriteLine("Text box: " + textFrame.TextBox);
break;
}
}
}
}
Inheritance Hierarchy
System.Object
L
Aurigma.GraphicsMill.PipelineElement
L
Aurigma.GraphicsMill.Codecs.Frame
L
Aurigma.GraphicsMill.Codecs.Psd.PsdFrame
L
Aurigma.GraphicsMill.Codecs.Psd.PsdTextFrame