C# Class NewTOAPIA.Drawing.Transform2D

Transform2D is a class used to perform Affine transforms on a matrix. Affine transforms are those which can be mathematically reversed. Examples include translation, scaling, shearing, and the like.
Datei anzeigen Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Properties

Property Type Description
fMatrix TOAPI.Types.XFORM

Public Methods

Method Description
Combine ( XFORM b ) : bool
GetDPtoLP ( GDIContext hDC ) : bool
Invert ( ) : bool
MapTri ( float px0, float py0, float qx0, float qy0, float rx0, float ry0 ) : bool
MapTri ( float px0, float py0, float qx0, float qy0, float rx0, float ry0, float px1, float py1, float qx1, float qy1, float rx1, float ry1 ) : bool
Rotate ( float angle, float x0, float y0 ) : bool
Scale ( float sx, float sy ) : bool
SetToIdentity ( ) : void
SetTransform ( XFORM xm ) : bool
Transform2D ( ) : System
TransformPoint ( Point aPoint ) : Point
Translate ( float dx, float dy ) : bool

Private Methods

Method Description
minmax ( int x0, int x1, int x2, int x3, int &minx, int &maxx ) : void

Method Details

Combine() public method

public Combine ( XFORM b ) : bool
b TOAPI.Types.XFORM
return bool

GetDPtoLP() public method

public GetDPtoLP ( GDIContext hDC ) : bool
hDC GDIContext
return bool

Invert() public method

public Invert ( ) : bool
return bool

MapTri() public method

public MapTri ( float px0, float py0, float qx0, float qy0, float rx0, float ry0 ) : bool
px0 float
py0 float
qx0 float
qy0 float
rx0 float
ry0 float
return bool

MapTri() public method

public MapTri ( float px0, float py0, float qx0, float qy0, float rx0, float ry0, float px1, float py1, float qx1, float qy1, float rx1, float ry1 ) : bool
px0 float
py0 float
qx0 float
qy0 float
rx0 float
ry0 float
px1 float
py1 float
qx1 float
qy1 float
rx1 float
ry1 float
return bool

Rotate() public method

public Rotate ( float angle, float x0, float y0 ) : bool
angle float
x0 float
y0 float
return bool

Scale() public method

public Scale ( float sx, float sy ) : bool
sx float
sy float
return bool

SetToIdentity() public method

public SetToIdentity ( ) : void
return void

SetTransform() public method

public SetTransform ( XFORM xm ) : bool
xm TOAPI.Types.XFORM
return bool

Transform2D() public method

public Transform2D ( ) : System
return System

TransformPoint() public method

public TransformPoint ( Point aPoint ) : Point
aPoint Point
return Point

Translate() public method

public Translate ( float dx, float dy ) : bool
dx float
dy float
return bool

Property Details

fMatrix public_oe property

public XFORM,TOAPI.Types fMatrix
return TOAPI.Types.XFORM