TImageEnView.UnlockUpdate
Declaration
function UnlockUpdate(): Integer;
Description
Decrement the
lock update counter (use after calling
LockUpdate).
If the lock count is zero, then
Update is called to refresh the view.
Returns the lock count.
ImageEnView1.LockUpdate();
for i := 0 to ImageEnView1.LayersCount-1 do
begin
ImageEnView1.LayersCurrent := i;
ImageEnView1.Proc.Resample(300, -1, rfNone); // without LockUpdate this call resizes all other layers
end;
ImageEnView1.UnlockUpdate();