TImageEnVect.FindObjectAt
Declaration
function FindObjectAt(x, y: integer; var Distance: double): integer;
Description
Returns the object near the client coordinates x, y.
Distance will contain the object's distance from the specified coordinates.
Return a value <0 if no object is found.
See
MaxSelectionDistance// hobj wil contains the object at 100, 100.
Hobj := FindObjectAt(100, 100, distance);
Transition Information
If you are transitioning your code to
TImageEnView Layers, instead of FindObjectAt, use:
TImageEnView.FindLayerAt
idx := ImageEnView1.FindLayerAt()