Eyeshot 10 WinForms API Reference
RenderToBitmap(Double,Boolean,Boolean) Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > RenderToBitmap Method : RenderToBitmap(Double,Boolean,Boolean) Method
The bitmap scale
If false, the drawing of the background is skipped
If true, use the hardware acceleration (OpenGL only)
Returns an image of the current ViewportLayout scene of the active viewport. The image can be scaled even to a poster size one.
Syntax
'Declaration
 
Public Overloads Function RenderToBitmap( _
   ByVal drawScaleFactor As Double, _
   ByVal drawBackground As Boolean, _
   Optional ByVal hdwAcceleration As Boolean _
) As Bitmap
public Bitmap RenderToBitmap( 
   double drawScaleFactor,
   bool drawBackground,
   bool hdwAcceleration
)

Parameters

drawScaleFactor
The bitmap scale
drawBackground
If false, the drawing of the background is skipped
hdwAcceleration
If true, use the hardware acceleration (OpenGL only)

Return Value

The 24-bit image.
Remarks
To get a 32-bit image with transparent background set the devDept.Graphics.BackgroundSettings.StyleMode to devDept.Graphics.backgroundStyleType.None.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List