ImageGear for C and C++ on Windows v19.0
IG_vect_beziersurface_init

This function initializes a Bezier surface. It sets counts of control points and surface degrees in both directions.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_beziersurface_init(
   HIG_VECT_ENTITY hEntity,
   long m,
   long n,
   long nMDegree,
   long nNDegree
);

Arguments:

Name Type Description
hEntity HIG_VECT_ENTITY Handle to the entity of type IG_VECT_ENT_BEZIER_SURFACE.
m long Count of control points in M direction.
n long Count of control points in N direction.
nMDegree long Surface degree in M direction.
nNDegree long Surface degree in N direction.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None

Remarks:

M and N directions can be interpreted as columns and rows in the surface's mesh.

The function initializes all control points with (0, 0, 0). Use IG_vect_beziersurface_set_point for setting control point values. You can call this function on an IG_VECT_ENT_BEZIER_SURFACE that has been initialized already. In this case, the object will be fully re-initialized; no control point values will be preserved.

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback