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
gdiViewGDI2DView
PrintToGDI(LayoutView)
public PrintToGDI(LayoutView layoutView)
Parameters
layoutViewLayoutView
PrintToGDI(Bitmap)
public PrintToGDI(Bitmap bitmap)
Parameters
bitmapBitmap
Properties
DontRecalcTriangulation
public bool DontRecalcTriangulation { get; set; }
Property Value
LineWidthFactor
public double LineWidthFactor { get; set; }
Property Value
Methods
OnPrintPage(object, PrintPageEventArgs)
public void OnPrintPage(object sender, PrintPageEventArgs e)
Parameters
senderobjectePrintPageEventArgs
PrintSinglePage(Project, string, bool, PrintDocument)
public static void PrintSinglePage(Project pr, string nameOfView, bool print2D, PrintDocument pd)
Parameters
prProjectnameOfViewstringprint2DboolpdPrintDocument
PrintToBitmap(Model, Projection, Layer[], bool, bool)
public void PrintToBitmap(Model model, Projection pr, Layer[] visibleLayers, bool shading, bool curvesOnly)
Parameters
modelModelprProjectionvisibleLayersLayer[]shadingboolcurvesOnlybool