Griaule Biometrics

Home » Fingerprint SDK 2009 Developer's Manual » Programming Reference Guide » Fingerprint SDK DLL Reference Guide » Capture functions » GrCapSaveRawImageToFile

GrCapSaveRawImageToFile

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.

Parameters

[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.

See also

  • Fingerprint Image Format
  • Declaration

    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;
    

    Sample Code

    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.');