ImageEn, unit iexOtherClasses

TIERFBClient.LockFrameBuffer

TIERFBClient.LockFrameBuffer


Declaration

procedure LockFrameBuffer;


Description

Locks frame buffer and cursor bitmap preventing writing operations.
This method can freeze the message handler thread so ensure you call UnlockFrameBuffer and to maintain frame buffer locked for less time as possible.

Applications could prevent frame buffer updates just setting Suspended = true, which does not freeze the connection.


Example

rfb.LockFrameBuffer;
try
  ImageEnMView1.SetImage( imageIndex, rfb.FrameBuffer );
finally
  rfb.UnlockFrameBuffer;
end;