CadRasterizationOptions.ObserverPoint
Contents
[
Hide
]CadRasterizationOptions.ObserverPoint property
Gets or sets the observer point.
public ObserverPoint ObserverPoint { get; set; }
Property Value
The observer point.
Examples
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
- class ObserverPoint
- class CadRasterizationOptions
- namespace Aspose.CAD.ImageOptions
- assembly Aspose.CAD