Leadtools.ImageProcessing.Effects Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.10
GetCurvePoints Method
See Also 
Leadtools.ImageProcessing.Effects Namespace > EffectsUtilities Class : GetCurvePoints Method




curve
Array of integers to be filled by this method. To get the real value of the array elements, each of the values must be divided by 1000.
userPoints
Array of Point structures that contain the points on the curve used to determine the values of curve array. The minimum x coordinate value is 0.
type
Flag that indicates the method to be used to update the curve array.
Updates the curve array based on a curve or lines that pass through the specified points.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetCurvePoints( _
   ByVal curve() As Integer, _
   ByVal userPoints() As Point, _
   ByVal type As CurvePointsType _
) As Integer
Visual Basic (Usage)Copy Code
Dim curve() As Integer
Dim userPoints() As Point
Dim type As CurvePointsType
Dim value As Integer
 
value = EffectsUtilities.GetCurvePoints(curve, userPoints, type)
C# 
public static int GetCurvePoints( 
   int[] curve,
   Point[] userPoints,
   CurvePointsType type
)
Managed Extensions for C++ 
public: static int GetCurvePoints( 
   int[] curve,
   Point[] userPoints,
   CurvePointsType type
) 
C++/CLI 
public:
static int GetCurvePoints( 
   array<int> curve,
   array<Point> userPoints,
   CurvePointsType type
) 

Parameters

curve
Array of integers to be filled by this method. To get the real value of the array elements, each of the values must be divided by 1000.
userPoints
Array of Point structures that contain the points on the curve used to determine the values of curve array. The minimum x coordinate value is 0.
type
Flag that indicates the method to be used to update the curve array.

Return Value

return the number of entries in curve array that were actually updated by this method.

Example

Remarks

  • This method will update curve array using either the best curve or lines that pass through the points specified in the userPoints array. The points in the array may be sorted or not. In most cases, this method is used with the FreeHandShearCommand, or FreeHandWaveCommand .
  • To compute the size of the curve array:
    Size = Maximum (userPoint.X) + 1;
  • The values stored in curve represent the y coordinates of the calculated curve based on the points in the userPoint array. In the curve array there can be only one y value for each x coordinate. Therefore, circles, ellipses, and spirals cannot be represented by curve.
  • The x coordinates for the user points are sorted internally automatically.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also