Method SetPerspective
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
SetPerspective(double, double)
Changes the type of this projection to be perspective and sets other values required for the perspective type.
public void SetPerspective(double nearClippingDistance, double fieldOfView)
Parameters
nearClippingDistancedoubleThe near clipping distance.
fieldOfViewdoubleThe field of view of the virtual camera, in degrees.
Remarks
The near clipping distance, expressed in the camera coordinate system. No parts of objects whose z coordinates are less than the value of this entry are drawn. The value must be positive.
A number between 0 and 180, inclusive, specifying the field of view of the virtual camera, in degrees. See description for the FieldOfView property, too.
Exceptions
- ArgumentOutOfRangeException
nearClippingDistanceis less than or equal to0. Also,fieldOfViewis not a number between 0 and 180, inclusive.