Table of Contents

Method RenderDocumentModel

Namespace
vdRay
Assembly
vdRay.dll

RenderDocumentModel(object)

Renders the document set in the vdRayComponent using the view properties set by the document (viewAngle, focalLenght etc.).

public object RenderDocumentModel(object inputParams)

Parameters

inputParams object

Currently you can only pass null as parameter.

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.
Bitmap bmp = vdRayComponent1.RenderDocumentModel(null) as Bitmap;
bmp.Save("image.bmp");