VectorShapeOriginSettings.IsOriginBoxCornersPresent
Contents
[
Hide
]VectorShapeOriginSettings.IsOriginBoxCornersPresent property
Gets a value indicating whether this instance has the origin box corners property.
public bool IsOriginBoxCornersPresent { get; }
Property Value
true
if this instance has the origin box corners 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
- class VectorShapeOriginSettings
- namespace Aspose.PSD.FileFormats.Core.VectorPaths
- assembly Aspose.PSD