Environment.RenderToBitmap (Rectangle, Double, Double, Boolean, Boolean) Method
Parameters
- rectangle
- Rectangle
The rectangle of the viewport to capture in screen coordinates (zero on top)
- drawScaleFactor
- double
The bitmap scale factor
- lineWeightFactor
- double
The factor applied to the line weight of the wire entities
- drawBackground
- bool
If false, the drawing of the background is skipped
- hdwAcceleration
- bool
If true, use the hardware acceleration (OpenGL only)
Return Value
BitmapThe 24-bit image.
To get a 32-bit image with transparent background set the BackgroundSettings.StyleMode to backgroundStyleType.None.