PenOptions

CadRasterizationOptions.PenOptions property

获取或设置画笔选项。

public PenOptions PenOptions { get; set; }

适当的价值

笔选项。

例子

设置“方形”笔

using (CadImage cadImage = (CadImage)Image.Load(GetPath(fileName)))
{
    JpegOptions options = new JpegOptions();
    var rasterizationOptions = new CadRasterizationOptions();
    rasterizationOptions.PenOptions = new PenOptions() { StartCap = LineCap.Square, EndCap = LineCap.Square };
    options.VectorRasterizationOptions = rasterizationOptions;
    cadImage.Save(outFile, options);
}

也可以看看