VectorShapeOriginSettings.IsTransformPresent

VectorShapeOriginSettings.IsTransformPresent property

Gets a value indicating whether this instance has the transform property.

public bool IsTransformPresent { get; }

Property Value

true if this instance has the transform property; otherwise, false.

Examples

The following code demonstrate the ability to resize a shape layers that contains vector paths.

[C#]

string sourceFileName = "vectorShapes.psd";
string outputFileName = "out_vectorShapes.psd";
string sourcePath = sourceFileName;
string outputPath = outputFileName;
string outputPathPng = Path.ChangeExtension(outputPath, ".png");
using (var psdImage = (PsdImage)Image.Load(sourcePath))
{
    foreach (var layer in psdImage.Layers)
    {
        layer.Resize(layer.Width * 5 / 4, layer.Height / 2);
    }

    psdImage.Save(outputPath);
    psdImage.Save(outputPathPng, new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}

See Also