Class PaintToBitmap
- Namespace
- CADability.Forms
- Assembly
- CADability.Forms.dll
Class to create a bitmap and draw IGeoObjects or Models on the it. GDI+ is used for drawing, not OpenGL.
public class PaintToBitmap : PaintToGDI, IDisposable, IPaintTo3D
- Inheritance
-
PaintToBitmap
- Implements
- Inherited Members
Constructors
PaintToBitmap(int, int)
Creates a bitmap with the specified size to draw on it.
public PaintToBitmap(int width, int height)
Parameters
Properties
Bitmap
Gets the Bitmap
public Bitmap Bitmap { get; }
Property Value
Methods
Dispose()
Disposes bitmap and graphics objects
public override void Dispose()
Paint(IGeoObject)
Paints a GeoObject onto the bitmap
public void Paint(IGeoObject go)
Parameters
goIGeoObject
Paint(Model)
Draws a Model onto the bitmap.
public void Paint(Model m)
Parameters
mModel