CadRasterizationOptionsObserverPoint Property

Gets or sets the observer point.

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

Property Value

Type: ObserverPoint
The observer point.
Sets up observation point to perform export of custom view of a drawing
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);
See Also