Table of Contents

Class PrintToGDI

Namespace
CADability
Assembly
CADability.dll

An IPaintTo3D implementation which draws with GDI+ (System.Drawing) instead of OpenGL: it collects the paint calls as print items in a QuadTree<T>, determines their visibility and draws them to a Graphics object. It is used to print a LayoutView or a GDI2DView (PrintSinglePage(Project, string, bool, PrintDocument), OnPrintPage(object, PrintPageEventArgs)), to render a model into a Bitmap (PrintToBitmap(Model, Projection, Layer[], bool, bool)) and for the display of the GDI2DView. Not available in the WebAssembly build.

public class PrintToGDI : IPaintTo3D, QuadTree<IPrintItemImpl>.IIterateQuadTreeLists
Inheritance
PrintToGDI
Implements
Inherited Members

Constructors

PrintToGDI(GDI2DView)

public PrintToGDI(GDI2DView gdiView)

Parameters

gdiView GDI2DView

PrintToGDI(LayoutView)

public PrintToGDI(LayoutView layoutView)

Parameters

layoutView LayoutView

PrintToGDI(Bitmap)

public PrintToGDI(Bitmap bitmap)

Parameters

bitmap Bitmap

Properties

DontRecalcTriangulation

public bool DontRecalcTriangulation { get; set; }

Property Value

bool

LineWidthFactor

public double LineWidthFactor { get; set; }

Property Value

double

Methods

OnPrintPage(object, PrintPageEventArgs)

public void OnPrintPage(object sender, PrintPageEventArgs e)

Parameters

sender object
e PrintPageEventArgs

PrintSinglePage(Project, string, bool, PrintDocument)

public static void PrintSinglePage(Project pr, string nameOfView, bool print2D, PrintDocument pd)

Parameters

pr Project
nameOfView string
print2D bool
pd PrintDocument

PrintToBitmap(Model, Projection, Layer[], bool, bool)

public void PrintToBitmap(Model model, Projection pr, Layer[] visibleLayers, bool shading, bool curvesOnly)

Parameters

model Model
pr Projection
visibleLayers Layer[]
shading bool
curvesOnly bool