Show / Hide Table of Contents

Class PaintToBitmap

Class to create a bitmap and draw IGeoObjects or Models on the it. GDI+ is used for drawing, not OpenGL.

Inheritance
System.Object
PaintToGDI
PaintToBitmap
Implements
System.IDisposable
CADability.IPaintTo3D
Inherited Members
PaintToGDI.projection
PaintToGDI.graphics
PaintToGDI.graphicsPath
PaintToGDI.Projection
PaintToGDI.SetCenter(GeoPoint2D)
PaintToGDI.SetScaling(Double)
PaintToGDI.Fit(BoundingRect, Boolean)
PaintToGDI.ThinLinesOnly
PaintToGDI.IPaintTo3D.PaintSurfaces
PaintToGDI.IPaintTo3D.PaintEdges
PaintToGDI.IPaintTo3D.PaintSurfaceEdges
PaintToGDI.IPaintTo3D.UseLineWidth
PaintToGDI.IPaintTo3D.Precision
PaintToGDI.IPaintTo3D.PixelToWorld
PaintToGDI.IPaintTo3D.SelectMode
PaintToGDI.IPaintTo3D.SelectColor
PaintToGDI.IPaintTo3D.DelayText
PaintToGDI.IPaintTo3D.DelayAll
PaintToGDI.IPaintTo3D.TriangulateText
PaintToGDI.IPaintTo3D.DontRecalcTriangulation
PaintToGDI.IPaintTo3D.Capabilities
PaintToGDI.IPaintTo3D.MakeCurrent()
PaintToGDI.IPaintTo3D.SetColor(Color, Int32)
PaintToGDI.IPaintTo3D.AvoidColor(Color)
PaintToGDI.IPaintTo3D.SetLineWidth(LineWidth)
PaintToGDI.IPaintTo3D.SetLinePattern(LinePattern)
PaintToGDI.IPaintTo3D.Polyline(GeoPoint[])
PaintToGDI.IPaintTo3D.FilledPolyline(GeoPoint[])
PaintToGDI.IPaintTo3D.Points(GeoPoint[], Single, PointSymbol)
PaintToGDI.IPaintTo3D.Triangle(GeoPoint[], GeoVector[], Int32[])
PaintToGDI.IPaintTo3D.PrepareText(String, String, FontStyle)
PaintToGDI.IPaintTo3D.PrepareIcon(Bitmap)
PaintToGDI.IPaintTo3D.Text(GeoVector, GeoVector, GeoPoint, String, String, FontStyle, Text.AlignMode, Text.LineAlignMode)
PaintToGDI.IPaintTo3D.List(IPaintTo3DList)
PaintToGDI.IPaintTo3D.SelectedList(IPaintTo3DList, Int32)
PaintToGDI.IPaintTo3D.Nurbs(GeoPoint[], Double[], Double[], Int32)
PaintToGDI.IPaintTo3D.Line2D(Int32, Int32, Int32, Int32)
PaintToGDI.IPaintTo3D.Line2D(PointF, PointF)
PaintToGDI.IPaintTo3D.FillRect2D(PointF, PointF)
PaintToGDI.IPaintTo3D.Point2D(Int32, Int32)
PaintToGDI.IPaintTo3D.DisplayIcon(GeoPoint, Bitmap)
PaintToGDI.IPaintTo3D.DisplayBitmap(GeoPoint, Bitmap)
PaintToGDI.IPaintTo3D.PrepareBitmap(Bitmap, Int32, Int32)
PaintToGDI.IPaintTo3D.PrepareBitmap(Bitmap)
PaintToGDI.IPaintTo3D.RectangularBitmap(Bitmap, GeoPoint, GeoVector, GeoVector)
PaintToGDI.IPaintTo3D.SetProjection(Projection, BoundingCube)
PaintToGDI.IPaintTo3D.Clear(Color)
PaintToGDI.IPaintTo3D.Resize(Int32, Int32)
PaintToGDI.IPaintTo3D.OpenList(String)
PaintToGDI.IPaintTo3D.CloseList()
PaintToGDI.IPaintTo3D.OpenPath()
PaintToGDI.IPaintTo3D.CloseFigure()
PaintToGDI.IPaintTo3D.ClosePath(Color)
PaintToGDI.IPaintTo3D.Arc(GeoPoint, GeoVector, GeoVector, Double, Double)
PaintToGDI.IPaintTo3D.MakeList(List<IPaintTo3DList>)
PaintToGDI.IPaintTo3D.FreeUnusedLists()
PaintToGDI.IPaintTo3D.UseZBuffer(Boolean)
PaintToGDI.IPaintTo3D.Blending(Boolean)
PaintToGDI.IPaintTo3D.FinishPaint()
PaintToGDI.IPaintTo3D.PaintFaces(PaintTo3D.PaintMode)
PaintToGDI.IPaintTo3D.FacesBehindEdgesOffset
PaintToGDI.IPaintTo3D.IsBitmap
PaintToGDI.IPaintTo3D.Dispose()
PaintToGDI.IPaintTo3D.PushState()
PaintToGDI.IPaintTo3D.PopState()
PaintToGDI.IPaintTo3D.PushMultModOp(ModOp)
PaintToGDI.IPaintTo3D.PopModOp()
PaintToGDI.IPaintTo3D.SetClip(Rectangle)
PaintToGDI.IPaintTo3D.PreparePointSymbol(PointSymbol)
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
PaintToGDI.Dispose()

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
In This Article
Back to top Generated by DocFX