Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
CreateScaleMatrix Method
See Also 
Leadtools.Annotations Namespace > AnnObject Class : CreateScaleMatrix Method



sx
The value by which to scale in the x-axis direction.
sy
The value by which to scale in the y-axis direction.
origin
An AnnPoint structure that represents the center of the scale operation
unitConverter
An AnnUnitConverter object that can be used to convert the origin point from one unit to another (usually to pixels).
sx
The value by which to scale in the x-axis direction.
sy
The value by which to scale in the y-axis direction.
origin
An AnnPoint structure that represents the center of the scale operation
unitConverter
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 scale matrix with the specified values.

Syntax

Visual Basic (Declaration) 
Public Shared Function CreateScaleMatrix( _
   ByVal sx As Single, _
   ByVal sy As Single, _
   ByVal origin As AnnPoint, _
   ByVal unitConverter As AnnUnitConverter _
) As Matrix
Visual Basic (Usage)Copy Code
Dim sx As Single
Dim sy As Single
Dim origin As AnnPoint
Dim unitConverter As AnnUnitConverter
Dim value As Matrix
 
value = AnnObject.CreateScaleMatrix(sx, sy, origin, unitConverter)
C# 
public static Matrix CreateScaleMatrix( 
   float sx,
   float sy,
   AnnPoint origin,
   AnnUnitConverter unitConverter
)
C++/CLI 
public:
static Matrix CreateScaleMatrix( 
   float sx,
   float sy,
   AnnPoint origin,
   AnnUnitConverter^ unitConverter
) 

Parameters

sx
The value by which to scale in the x-axis direction.
sy
The value by which to scale in the y-axis direction.
origin
An AnnPoint structure that represents the center of the scale operation
unitConverter
An AnnUnitConverter object that can be used to convert the origin point from one unit to another (usually to pixels).

Return Value

The 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: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features