CadRasterizationOptionsPenOptions Property

Gets or sets the pen options.

Namespace:  Aspose.CAD.ImageOptions
Assembly:  Aspose.CAD (in Aspose.CAD.dll) Version: 20.8
Syntax
public PenOptions PenOptions { get; set; }

Property Value

Type: PenOptions
The pen options.
Examples
Sets up "squared" pen
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);
}
See Also