ObserverPoint

CadRasterizationOptions.ObserverPoint property

获取或设置观察点。

public ObserverPoint ObserverPoint { get; set; }

适当的价值

观察点。

例子

设置观察点以执行绘图的自定义视图的导出

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;  // 沿 X 轴的旋转角度
    float yAngle = 20;  // 沿 Y 轴的旋转角度
    float zAngle = 30;  // 沿 Z 轴的旋转角度
    rasterizationOptions.ObserverPoint = new ObserverPoint(xAngle, yAngle, zAngle);
    options.VectorRasterizationOptions = rasterizationOptions;
    cadImage.Save(outFile, options);
}

也可以看看