SetSignImageEx
Declaration
Delphi
procedure SetSignImageEx(Assign: Boolean; Encoding: Integer; Width, Height: Integer; Image: PByte; Size: Cardinal);
C/C++
SOPAD_API void SOPAD_setSignImageEx(int bAssign, int nEncoding, int nWidth, int nHeight, const void* pImage, int nSize);
ActiveX
HRESULT SetSignImageEx([in] VARIANT_BOOL Assign, [in] long Encoding, [in] long Width, [in] long Height, [in] VARIANT Image);
Description
It's possible to display custom image (for example, part of the document) on the pad's LCD during signing. This function allows to define custom image. Image will be actually drawn on the call of startCapture function.
NOTE: This function only works with signature pads with B/W display. For Signature Pads with colour display please see LCDImage or LCDImageEx, LCDImageExR
Arguments
Assign
Pass a non-zero value to store image, zero value to clear image.
Encoding
Image encoding method
Value | Description |
|---|---|
0 | Pre-naturaSign compatible. One byte represents one horizontal line of 8 pixels. |
1 | naturaSign compatibe. One byte represents one vertical line of 8 pixels. |
Width and Height
Size of signature image
LCDImageArray, Image
Single-dimensional array, containing byte values.
Array should have the following format:
Each bit represents one pixel, bit value = 1 means that pixel should be lit, thus one byte determines eight pixels state. The first byte of array corresponds to a line of pixels starting from (0, 0). In a byte bit 0 determines the leftmost or topmost pixel.
Size
Size of binary data block.
Sample-Code