UpdateSizingGroup

function UpdateSizingGroup(targetLayer, movedBtnLayer: TLayer32; masterImg: TImage32): Boolean;


Once a (sizing) button layer has been moved (see TLayer32.PositionCenteredAt), this function simplifies updating the displayed image's size. This function copies 'masterImg' to 'targetLayer', resizing this image according to the buttons in movedBtnLayer.GroupId.

(This is demonstrated in the accompanying SimpleLayers sample application.)

See Also

TLayer32.PositionCenteredAt