ImageEn, unit iexLayers

TIELayer.PointOverLayer

TIELayer.PointOverLayer


Declaration

function PointOverLayer(ScrX, ScrY: Integer; CanSelectAlpha: Boolean = true; PtTolerance: Integer = 0): Boolean;


Description

Returns true if position ScrX, ScrY (in client area coordinates) is over the layer.
If CanSelectAlpha is false, it won't return true if the position is over a transparent area of the layer.
PtTolerance determines whether points beside the specified point are also checked, e.g. if PtTolerance is 1, then the points around the specified position are also checked.

Note:
 Does NOT check whether layer is visible. I.e. may return true even if layer.Visible = False
 CanSelectAlpha has no effect for non-image layers, unless LayersCaching is enabled