ImageGear for C and C++ on Windows v19.10 - Updated
IG_vect_drwng_find_selection
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Drawing Functions > IG_vect_drwng_find_selection

The function looks for the entity that corresponds to the device coordinates nX and nY.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_drwng_find_selection(
        HIG_VECT_DRWNG hDrwng,
        long nX,
        long nY
);

Arguments:

Name Type Description
hDrwng HIG_VECT_DRWNG Handle to the Drawing.
nX long X device coordinate.
nY long Y device coordinate.

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:

If the entity has been found, it is placed in the internal entity container together with all included blocks. The user can get a handle to this container from the function IG_vect_drwng_get_selection(). If no entity has been found, the entity container is empty.