Method RenderOrthographic
- Namespace
- vdRay
- Assembly
- vdRay.dll
RenderOrthographic(vdPointView, double)
Renders the document set in the vdRayComponent in orthrographic mode.
public object RenderOrthographic(vdPointView pointview, double ViewSize)
Parameters
pointviewvdPointViewThe vdPointView object defining the view properties (viewAngle, focalLenght etc.).
ViewSizedoubleThe desired ViewSize.
Returns
- object
The rendered bitmap as object
Examples
Rendering and saving an image.
vdRayComponent1.Document = vdFramedControl1.BaseControl.ActiveDocument;
vdRayComponent1.RenderWidth = vdRayComponent1.Width;
vdRayComponent1.RenderHeight = vdRayComponent1.Height;
//You can also use the AutoFitBitmap property in order to use the component's Width and Height as RenderWidth and RenderHeight.
vdRay.vdPointView pointView = new vdRay.vdPointView(new VectorDraw.Geometry.gPoint(0, 0, 0), new VectorDraw.Geometry.Vector(0, 1, 0));
Bitmap bmp = vdRayComponent1.RenderOrthographic(pointView, vdFramedControl1.BaseControl.ActiveDocument.ViewSize) as Bitmap;
bmp.Save("image.bmp");