SetLcdSignZoom

Declaration

Delphi

procedure SetLcdSignZoom(ZoomType: Integer; Zoom: Integer; TopLeftX, TopLeftY: Integer); stdcall;

ActiveX

HRESULT _stdcall SetLcdSignZoom([in] long ZoomType, [in] long Zoom, [in] long TopLeftX, [in] long TopLeftY);

Description

With SetLcdSignZoom you can define the zoom level for the SignInDocument mode, which is usable with devices with colour displays (Colour, Brilliance). That function only works in combination with SetSignDocMode and after the document was loaded.

Arguments

ArgumentExplanation
ZoomType

Until now only the values 0 and 7 are usable

  • 0 = set zoom manually, provide percentual value in Zoom parameter
  • 1 = set zoom automatically
  • 2 = size of signrect in docsign mode in mm, provided in TopLeftX/Y
  • 3 = position of signrect in SignOnDoc mode  (bottom left) in mm, provide parameter in TopLeftX/Y
  • 4 = Position of Signrect in custom mode  (top left) in pixel, provide parameter in TopLeftX/Y
  • 5 = Position of Signrect in custom mode  (bottom right) in pixel, provide parameter in TopLeftX/Y
  • 6 = Flags for signrect calc, provide inarameter in Zoom
  • 7 = SignatureArea in percent, provied in parameter Zoom
Zoom

Zoomtype = 0

Zoomlevel, set a percental value here 0


Zoomtype = 6

Bit 0 = Scroll to Position in X direction at start of signature in SignOnDoc Mode 

Bit 1 = Scroll to Position in Y direction at start of signature in SignOnDoc Mode 

Bit 2 = Center Signaturerectangle on LC Display in X direction

Bit 3 = Center Signaturerectangle on LC Display in Y direction

Bit 4 - 32 reserved, set to 0


Zoomtype = 7

How much space should be used for the Signing Area in SignOnDocMode, set a percental value from 60 to 100 

TopLeftX

TopLeftY

Zoomtype = 2

TopLeftX= Width of signature rectangle in SignOnDoc mode in mm, set to 0 if not used

TopLeftY= Height of signature rectangle in SignOnDoc mode in mm, set to 0 if not used


Zoomtype = 3

TopLeftX= Position the left side of signature rectangle in SignOnDoc mode in mm, from the left edge of the display

TopLeftY= Position the bottom side of signature rectangle in SignOnDoc mode in mm, from the bottom edge of the display


C# sample

AddSignature
// Set Zoom for Sign in Document Mode and enable it with SetSignDocMode
SignAPIv4.SetLcdSignZoom(0, 280, 0, 0);
SignAPIv4.SetSignDocMode(100, 100, 250, 200, 1);
 
/* Alternative way to place the Signature Rectangle
	SignAPIv4.SetLcdSignZoom(3, 0, 20, 50);           //  place signature 2cm from left and 5cm from bottom
	SignAPIv4.SetLcdSignZoom(2, 0, 50, 0);           //  width of 5cm
*/
 
// Next step is to start Signing
 
string padSettings = "";
bool Capturing = SigDev.startCapture("", true, true, true, true, ref ps);