VectorShapeOriginSettings.IsOriginBoxCornersPresent

VectorShapeOriginSettings.IsOriginBoxCornersPresent property

Obtient une valeur indiquant si cette instance possède la propriété origin box corners.

public bool IsOriginBoxCornersPresent { get; }

Valeur de la propriété

vrai si cette instance a la propriété origin box corners ; sinon,FAUX .

Exemples

Le code suivant illustre la possibilité de redimensionner un calque de forme contenant des chemins vectoriels.

[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 });
}

Voir également