AlphaHit

Graphics32

TBitmapLayer.AlphaHit

property AlphaHit: Boolean;

Description

AlphaHit determines how the layer performs its HitTest.

If AlphaHit=False, layer only passes points inside the rectangle returned by GetAdjustedLocation.

If AlphaHit=True, layer checks the opacity of the pixel lying under the specified point and passes the hit test only when the alpha channel of the pixel is greater when zero.

See Also

TPositionedLayer.GetAdjustedLocation, TCustomLayer.HitTest