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

WinForms Assembly > devDept.Eyeshot Namespace > Viewport Class > RenderToBitmap Method : RenderToBitmap(RectangleF,Size,Double,Boolean,Boolean,Boolean) Method
The rectangle of the viewport to capture in screen coordinates
The size in which the viewport will be fitted.
The factor applied to the line weight of the wire entities
If true, the drawing of the background is skipped
If true, use the hardware acceleration (OpenGL only)
Draws UI elements like ViewCubeIcon and ToolBar
Returns an image of the current ViewportLayout scene. The image can be scaled even to a poster size one.
Syntax
'Declaration
 
Public Overloads Function RenderToBitmap( _
   ByVal rectangle As RectangleF, _
   ByVal bitmapSize As Size, _
   ByVal lineWeightFactor As Double, _
   ByVal drawBackground As Boolean, _
   ByVal hdwAcceleration As Boolean, _
   ByVal drawUiElements As Boolean _
) As Bitmap
public Bitmap RenderToBitmap( 
   RectangleF rectangle,
   Size bitmapSize,
   double lineWeightFactor,
   bool drawBackground,
   bool hdwAcceleration,
   bool drawUiElements
)

Parameters

rectangle
The rectangle of the viewport to capture in screen coordinates
bitmapSize
The size in which the viewport will be fitted.
lineWeightFactor
The factor applied to the line weight of the wire entities
drawBackground
If true, the drawing of the background is skipped
hdwAcceleration
If true, use the hardware acceleration (OpenGL only)
drawUiElements
Draws UI elements like ViewCubeIcon and ToolBar

Return Value

The 24-bit image.
See Also

Reference

Viewport Class
Viewport Members
Overload List