Table of Contents

Method Render

Namespace
vdRay
Assembly
vdRay.dll

Render(vdPointView)

Renders the passed vdDocument using the vdRay Engine.

public object Render(vdPointView pointview)

Parameters

pointview vdPointView

The vdPointView object that defines the Position, direction, twist, etc., of the camera.

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.Render(pointView) as Bitmap;
bmp.Save("image.bmp");