Table of Contents

Class PaintToGDI

Namespace
CADability.Forms
Assembly
CADability.Forms.dll
public class PaintToGDI : IDisposable, IPaintTo3D
Inheritance
PaintToGDI
Implements
Derived
Inherited Members

Constructors

PaintToGDI()

protected PaintToGDI()

PaintToGDI(Projection, Graphics)

public PaintToGDI(Projection projection, Graphics graphics)

Parameters

projection Projection
graphics Graphics

Fields

graphics

protected Graphics graphics

Field Value

Graphics

graphicsPath

protected GraphicsPath graphicsPath

Field Value

GraphicsPath

projection

protected Projection projection

Field Value

Projection

Properties

Projection

Gets or sets the projection

public Projection Projection { get; set; }

Property Value

Projection

ThinLinesOnly

public bool ThinLinesOnly { get; set; }

Property Value

bool

Methods

Dispose()

public virtual void Dispose()

Fit(BoundingRect, bool)

Fits the provided rectangle to the drawing area

public void Fit(BoundingRect fitTo, bool distort)

Parameters

fitTo BoundingRect

Rectangle in the projected world coordinate system

distort bool

Distort the projection if different aspect ratio

SetCenter(GeoPoint2D)

Sets the center of the 2D area

public void SetCenter(GeoPoint2D center)

Parameters

center GeoPoint2D

SetScaling(double)

public void SetScaling(double scalingFactor)

Parameters

scalingFactor double