Skip to end of metadata
Go to start of metadata

Declaration

Delphi

function ReadPreviewImage(typeOfPic: Integer; AWidth, AHeight: Integer; var LenOfImage: Integer): Pointer;

C/C++

SOPAD_API LPVOID SOPAD_ReadPreviewImage(int nTypeOfPic, int nWidth, int nHeight, int* pnLenOfImage);

Description

Important: to get the final signature image use ReadHighResBitmap.

Reads real-time signature preview image. The function scales image to the requested size by X and Y without keeping source width/height proportions. It's caller's responsibility to request image size proportionally to sensor size.

Arguments

typeOfPic

Image type

ValueDescription
0JPEG
1

Bitmap

2PNG

Width and Height

Desired image size

LenOfImage

Length of binary data block with image.

Return value

Function returns pointer to a binary data block which contains preview image in requested format. In case of failure function returns nil pointer.

  • No labels