Lock the canvas, making it unavailable for drawing.
Source position: graphics.pp line 1065
public procedure TCanvas.Lock; virtual;
Calls the LockCanvas method in the TFPCustomCanvas ancestor.