This method retrieves the number of points used to define the selection area drawn using the Select or the FreeSelect tools in the image-editing toolbar

[C++Builder]   [ int = ]imagekitcontrolname->Edit->GetArrayPointsNum()
[Delphi]   [ Integer = ]imagekitcontrolname.Edit.GetArrayPointsNum

Property Value

None

Return Value

The number of points (if unsuccessful, 0 is returned)

Explanation

The GetArrayPointsNum property retrieves the number of points used to define the selection area drawn using the Select or the FreeSelect tools in the image-editing toolbar.

In the image-editing toolbar, the Select tool and the FreeSelect tool can be used to select an area on an image. This selected area is defined by a set of points. In the case of the Select tool, a rectangular selection area is drawn so only 4 points are needed to define that area. In the case of the FreeSelect tool, however, the selection area can be defined by a large number of points. The GetArrayPointsNum method can be used to retrieve the number of points that defines the selection area. This can be useful if you want to use the GetArrayPointsXY method to retrieve each point's X,Y coordinates. By knowing the number of points there are, you can define the size of the TPoint type array needed to hold the X,Y coordinate values.

 

The ImageKit10 VCL is a product created by Newtone Corporation