TRasterLayer32.AutoSetHitTestMask

property AutoSetHitTestMask: boolean; //read and write

When True , the hit-test mask will be updated automatically with any changes to the layer's size or rotation.

Default = True .