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++ .NET
int CapSaveRawImageToFile (ref object RawImage, int width, int height, string filename, int imageFormat)
C#
int CapSaveRawImageToFile (ref Object RawImage, int width, int height, string filename, int imageFormat)
VB6
Function CapSaveRawImageToFile (ByRef RawImage As Variant, ByVal width As Long, ByVal height As Long, ByVal filename As String, ByVal imageFormat As Long) As Long
VB .NET
Function CapSaveRawImageToFile (ByRef RawImage As Object, ByVal width As Integer, ByVal height As Integer, ByVal filename As String, ByVal imageFormat As Integer) As Integer
Delphi
function CapSaveRawImageToFile(vat rawImage: OleVariant; width, height: integer; filename: WideString; imageFormat: GRCAP_IMAGE_FORMAT): integer;;
C++ .NET
if (axGrFingerXCtrl2->CapSaveRawImageToFile(&_raw->img, _raw->width, _raw->height, FileName, GRCAP_IMAGE_FORMAT_BMP) != GR_OK) {
WriteLog("Failed to save the file.");
}
C#
if (axGrFingerXCtrl1.CapSaveRawImageToFile(ref _raw.img, _raw.width, _raw.height, FileName, (int)GRConstants.GRCAP_IMAGE_FORMAT_BMP) != (int)GRConstants.GR_OK) {
WriteLog("Failed to save the file.");
}
VB6
If GrFingerXCtrl1.CapSaveRawImageToFile(raw.img, raw.width, raw.height, FileName, GRCAP_IMAGE_FORMAT_BMP) <> GR_OK Then
writeLog ("Failed to save the file.")
End If
VB .NET
If AxGrFingerXCtrl1.CapSaveRawImageToFile(raw.img, raw.width, raw.height, FileName, GRConstants.GRCAP_IMAGE_FORMAT_BMP) <> GRConstants.GR_OK Then
WriteLog("Fail to save the file.")
End If
Delphi
if GrFingerXCtrl1.CapSaveRawImageToFile(raw.img, raw.width, raw.Height, fname, GRCAP_IMAGE_FORMAT_BMP) <> GR_OK then
WriteLog('Fail to save the file.');