ImageEn, unit imageenview

TImageEnView.UnlockUpdate

TImageEnView.UnlockUpdate


Declaration

procedure UnlockUpdate();


Description

Re-enables all calls to the Update method, after a call to LockUpdate.
LockUpdate and UnlockUpdate are useful, for example, when you need to resample multiple layers.
UnlockUpdate decreases LockUpdateCount and calls Update when the count reverts to zero.


Example

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();