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
Syntax public float Zoom { get; set; }
Public Property Zoom As Single
Get
Set
public:
property float Zoom {
float get ();
void set (float value);
}
member Zoom : float32 with get, set
Property Value
Type:
SingleExamples
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