CadRasterizationOptionsZoom Property

Gets or sets zoom factor. Allows to zoom drawing relatively to canvas size. Value of 1 corresponds to exact fit, value below 1 allows to preserve margins, value above 1 allows to scale drawing up.

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

Property Value

Type: Single
Sets up zoom to keep whole drawing borders visible
using (CadImage cadImage = (CadImage)Image.Load(GetPath(fileName)))
    JpegOptions options = new JpegOptions();
    var rasterizationOptions = new CadRasterizationOptions();
    rasterizationOptions.Zoom = 0.9f;
    options.VectorRasterizationOptions = rasterizationOptions;
    cadImage.Save(outFile, options);
See Also