Saves a raw grayscale fingerprint image as a picture file.
| Prerequisites | A valid license must exist on system. |
| Return | On success, GR_OK is returned. On failure, the appropriate error code is returned. |
| [in] rawImage |
A raw grayscale fingerprint image. |
| [in] width |
Fingerprint image width in pixels. |
| [in] height |
Fingerprint image height in pixels. |
| [in] filename |
The complete path and filename of the picture file to create. |
| [in] imageFormat |
Picture file format. |
C++
int __stdcall GrCapSaveRawImageToFile(unsigned char* rawImage, unsigned int width, unsigned int height, char* fileName, GRCAP_IMAGE_FORMAT imageFormat);
Delphi
function GrCapSaveRawImageToFile(rawImage: PChar; width, height: Integer; filename: String; imageFormat: GRCAP_IMAGE_FORMAT): Integer; stdcall;
C++
char *temp = (char*)Marshal::StringToHGlobalAnsi(sfdImage-> FileName).ToPointer();
if (GrCapSaveRawImageToFile(_raw.img, _raw.width, _raw.height, temp, GRCAP_IMAGE_FORMAT_BMP) != GR_OK) {
WriteLog("Failed to save the file.");
}
Marshal::FreeHGlobal((int)temp);
Delphi
if GrCapSaveRawImageToFile(raw.img, raw.width, raw.Height, fname, GRCAP_IMAGE_FORMAT_BMP) <> GR_OK then
WriteLog('Failed to save the file.');