LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

CreateRotateMatrix Method






The angle (extent) of the rotation in degrees.
An AnnPoint structure that represents the center of the rotation.
An AnnUnitConverter object that can be used to convert the origin point from one unit to another (usually to pixels).
A helper method that creates a standard rotation matrix with the specified values.
Syntax
public static Matrix CreateRotateMatrix( 
   float angle,
   AnnPoint origin,
   AnnUnitConverter unitConverter
)
'Declaration
 
Public Shared Function CreateRotateMatrix( _
   ByVal angle As Single, _
   ByVal origin As AnnPoint, _
   ByVal unitConverter As AnnUnitConverter _
) As Matrix
'Usage
 
Dim angle As Single
Dim origin As AnnPoint
Dim unitConverter As AnnUnitConverter
Dim value As Matrix
 
value = AnnObject.CreateRotateMatrix(angle, origin, unitConverter)
public static Matrix CreateRotateMatrix( 
   float angle,
   AnnPoint origin,
   AnnUnitConverter unitConverter
)
 function Leadtools.Annotations.AnnObject.CreateRotateMatrix( 
   angle ,
   origin ,
   unitConverter 
)
public:
static Matrix^ CreateRotateMatrix( 
   float angle,
   AnnPoint origin,
   AnnUnitConverter^ unitConverter
) 

Parameters

angle
The angle (extent) of the rotation in degrees.
origin
An AnnPoint structure that represents the center of the rotation.
unitConverter
An AnnUnitConverter object that can be used to convert the origin point from one unit to another (usually to pixels).

Return Value

The System.Drawing.Drawing2D.Matrix that this method creates.
Remarks
This method is intended to be used by derived annotation objects that implement non-automatic transformation. For more information and an example, refer to the Implement User Defined Objects with LEADTOOLS Annotations
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnObject Class
AnnObject Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.