Table of Contents

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

width int

Width of the bitmap in pixel

height int

Height of the Bitmap in pixel

Properties

Bitmap

Gets the Bitmap

public Bitmap Bitmap { get; }

Property Value

Bitmap

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

go IGeoObject

Paint(Model)

Draws a Model onto the bitmap.

public void Paint(Model m)

Parameters

m Model