L_BezierPath

#include "ltimgcor.h"

L_LTIMGCOR_API L_INT L_BezierPath(pInPoints, ppOutPoints, pOutPointsCount, uFlags)

L_POINT* pInPoints; pointer to an L_POINT structure
L_POINT** ppOutPoints; pointer to a pointer to an L_POINT structure
L_INT* pOutPointsCount; number of points in the resulting path
L_UINT uFlags; number of paths

Constructs the Bezier curve out of the input points.

Parameter Description
pInPoints An array of 4 points that will be used to form the curve. The first point represents the starting point of the curve. The second point represents the point that is 1/3 of the way between the first and the last point of the curve. The third point represents the point at 2/3 of the way between the first and the last point of the curve. The fourth point represents the last point of the curve.
ppOutPoints An array of points that form a Bezier curve.
pOutPointsCount The number of points in the Bezier path.
uFlags Reserved for future use.

Returns

SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function requires an array of 4 points.

Use this function to match the output curve with the curve between two corners of the shape before calling L_UnWarp.

Required DLLs and Libraries

LTIMGCOR
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64, Linux.

Help Version 20.0.2018.7.30
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help