Class PaintToBitmap
Class to create a bitmap and draw IGeoObjects or Models on the it. GDI+ is used for drawing, not OpenGL.
Implements
System.IDisposable
CADability.IPaintTo3D
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CADability.Forms
Assembly: CADability.Forms.dll
Syntax
public class PaintToBitmap : PaintToGDI, IDisposable, IPaintTo3D
Constructors
PaintToBitmap(Int32, Int32)
Creates a bitmap with the specified size to draw on it.
Declaration
public PaintToBitmap(int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | width | Width of the bitmap in pixel |
| System.Int32 | height | Height of the Bitmap in pixel |
Properties
Bitmap
Gets the Bitmap
Declaration
public Bitmap Bitmap { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Bitmap |
Methods
Dispose()
Disposes bitmap and graphics objects
Declaration
public override void Dispose()
Overrides
Paint(IGeoObject)
Paints a GeoObject onto the bitmap
Declaration
public void Paint(IGeoObject go)
Parameters
| Type | Name | Description |
|---|---|---|
| CADability.GeoObject.IGeoObject | go |
Paint(Model)
Draws a Model onto the bitmap.
Declaration
public void Paint(Model m)
Parameters
| Type | Name | Description |
|---|---|---|
| CADability.Model | m |
Implements
System.IDisposable
CADability.IPaintTo3D