CadRasterizationOptionsObserverPoint Property |
Namespace: Aspose.CAD.ImageOptions
using (CadImage cadImage = (CadImage)Image.Load(GetPath(fileName))) { JpegOptions options = new JpegOptions(); var rasterizationOptions = new CadRasterizationOptions(); rasterizationOptions.PageWidth = 1500; rasterizationOptions.PageHeight = 1500; float xAngle = 10; //Angle of rotation along the X axis float yAngle = 20; //Angle of rotation along the Y axis float zAngle = 30; //Angle of rotation along the Z axis rasterizationOptions.ObserverPoint = new ObserverPoint(xAngle, yAngle, zAngle); options.VectorRasterizationOptions = rasterizationOptions; cadImage.Save(outFile, options); }