Environment.RenderToBitmap (RectangleF, Size, Double, Boolean, Boolean) Method
Parameters
- rectangle
- RectangleF
The rectangle of the viewport to capture in screen coordinates (zero on top)
- bitmapSize
- Size
The size in which the viewport will be fitted.
- lineWeightFactor
- double
The factor applied to the line weight of the wire entities
- drawBackground
- bool
If true, 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.