VectorShapeOriginSettings.IsOriginBoxCornersPresent

VectorShapeOriginSettings.IsOriginBoxCornersPresent property

Ottiene un valore che indica se questa istanza ha la proprietà angoli box di origine.

public bool IsOriginBoxCornersPresent { get; }

Valore della proprietà

VERO se questa istanza ha la proprietà angoli scatola di origine; Altrimenti,falso .

Esempi

Il codice seguente dimostra la possibilità di ridimensionare un livello di forma che contiene percorsi vettoriali.

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

Guarda anche