VstkResource.StrokeStyleLineAlignment
VstkResource.StrokeStyleLineAlignment property
获取或设置 Stroke 样式线条对齐方式。
public StrokePosition StrokeStyleLineAlignment { get; set; }
例子
下面的代码演示了对 VstkResource 资源的支持。
[C#]
string srcFile = "StrokeShapeTest1.psd";
string dstFile = "StrokeShapeTest2.psd";
using (PsdImage image = (PsdImage)Image.Load(srcFile))
{
Layer layer = image.Layers[1];
foreach (LayerResource resource in layer.Resources)
{
if (resource is VstkResource)
{
VstkResource vstkResource = (VstkResource)resource;
vstkResource.StrokeStyleLineAlignment = StrokePosition.Outside;
vstkResource.StrokeStyleLineWidth = 20;
}
}
image.Save(dstFile);
}