Create polygons from current selection. This method creates the right number of polygons which composes the original selection.
This method is useful to convert from selection to vectorial polygons.
Returns number of created objects.
If you are transitioning your code to TImageEnView Layers
, instead of CreatePolygonsFromSelection, use: TImageEnView.LayersCreatePolylineFromSelection