CadRasterizationOptions.Zoom
CadRasterizationOptions.Zoom 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.
public float Zoom { get; set; }
Examples
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
- class CadRasterizationOptions
- namespace Aspose.CAD.ImageOptions
- assembly Aspose.CAD