registerCanvas

Declaration

Delphi

procedure registerCanvas(canvas: TCanvas; xoffs, yoffs, width, height: Integer);

C/C++

SOPAD_API void SOPAD_registerCanvas(void* pCanvas, int xoffs, int yoffs, int width, int height);

Description

With this procedure one can register a TCanvas on which the signature is drawn in real time using antialiasing for smoother appearance. Note that the dll hooks into the OnChange event of the canvas for improved presentation. To avoid problems, the canvas should only be accessed after calling its Lock method as long as it is register with the dll.

Arguments

canvas

TCanvas instance to draw signature on.

xoffs, yoffs

Upper left corner of signature rectangle.

width, height

Size of signature rectangle.