Declaration
procedure LockUpdate();
Description
Increment the
lock update counter. While
LockUpdateCount is greater than zero all component updating is disabled, e.g. for when you are adding many layers.
Use
UnlockUpdate to unlock.
Returns the lock count.
ImageEnView1.LockUpdate();
for i := 0 to ImageEnView1.LayersCount-1 do
begin
ImageEnView1.LayersCurrent := i;
ImageEnView1.Proc.Resample(300, -1, rfNone); // withtout LockUpdate this call resizes all other layers
end;
ImageEnView1.UnlockUpdate();