Property LineScale
- Namespace
- Aspose.CAD.ImageOptions
- Assembly
- Aspose.CAD.dll
LineScale
Gets or sets a value of the line thickness scaling factor relative to the original thickness. If you want the line thickness to be increased by 2 times during export, then you need to set the value to 2. If you want the line thickness to be reduced by 4 times during export, then you need to set the value to 0.25.
public float LineScale { get; set; }
Property Value
Examples
Reads an image file in PLT format and saves the image in SVG format with .
string fileName = "exampleFile";
string file = string.Format("{0}.plt", fileName);
string outFile = string.Format("{0}.svg", fileName);
using (FileStream inStream = new FileStream(file, FileMode.Open))
using (Image image = Image.Load(inStream))
using (FileStream stream = new FileStream(outFile, FileMode.Create))
{
ImageOptionsBase options = new SvgOptions();
options.VectorRasterizationOptions = new CadRasterizationOptions
{
LineScale = 0.25f
};
image.Save(stream, options);
}