Griaule Biometrics

Home » Fingerprint SDK 2009 Developer's Manual » Programming Reference Guide » Fingerprint SDK ActiveX Reference Guide » Events » ImageAcquired

ImageAcquired

This event is fired whenever a fingerprint image is acquired from a plugged fingerprint reader.

Prerequisites The capture module must have been previously initialized.
At least one fingerprint reader started capturing fingerprint images.

Parameters

[in] idSensor

The ID of the fingerprint reader that raised the event.

[in] width

Fingerprint image width in pixels.

[in] height

Fingerprint image height in pixels.

[in] rawImage

The raw grayscale fingerprint image.

[in] res

Fingerprint image resolution in DPI.

See also

Declaration

C++ .NET

 void [Control Name]_ImageAcquired(System::Object *  sender, _IGrFingerXCtrlEvents_ImageAcquiredEvent *  e)

C#

void [Control Name]_ImageAcquired(object sender, [Library Name]._IGrFingerXCtrlEvents_ImageAcquireEvent e)

VB6

Sub [Control Name]_ImageAcquired(ByVal idSensor As String, ByVal width As Long, ByVal height As Long, rawImage As Variant, ByVal res As Long)

VB .NET

Sub [Control Name]_ImageAcquired(ByVal sender As System.Object, ByVal e As [Library Name]._IGrFingerXCtrlEvents_ImageAcquiredEvent) Handles [Control Name].ImageAcquired

Delphi

procedure [Control Name]ImageAcquired(Sender: TObject;  const dSensor: WideString; width, height: Integer;  var rawImage: OleVariant; res: Integer);

Sample Code

C++ .NET

private: System::Void axGrFingerXCtrl2_ImageAcquired(System::Object *  sender, _IGrFingerXCtrlEvents_ImageAcquiredEvent *  e) {
// Copying acquired image
_raw->img = e->rawImage;
_raw->height = e->height;
_raw->width = e->width;
_raw->Res = e->res;

// Signaling that an Image Event occurred.
WriteLog(String::Concat(S"Sensor: ", Convert::ToString(e->idSensor), S". Event: Image captured."));

// display the fingerprint image
PrintBiometricDisplay(false, GR_DEFAULT_CONTEXT);

}

C#



private void axGrFingerXCtrl1_ImageAcquired(object sender, AxGrFingerXLib._IGrFingerXCtrlEvents_ImageAcquiredEvent e)
{
// Copying acquired image
_raw.img = e.rawImage;
_raw.height = (int) e.height;
_raw.width = (int) e.width;
_raw.Res = e.res;

// Signaling that an Image Event occurred.
WriteLog("Sensor: " + e.idSensor + ". Event: Image captured.");

// display the fingerprint image
PrintBiometricDisplay(false, GRConstants.GR_DEFAULT_CONTEXT);

}


VB6



Private Sub GrFingerXCtrl1_ImageAcquired(ByVal idSensor As String, ByVal width As Long, ByVal height As Long, rawImage As Variant, ByVal res As Long)
' Copying acquired image
With raw
.img = rawImage
.height = height
.width = width
.res = res
End With

' Signaling that an Image Event occurred.
writeLog ("Sensor: " & idSensor & ". Event: Image captured.")

' display the fingerprint image
Call PrintBiometricDisplay(False, GR_DEFAULT_CONTEXT)

End Sub


VB .NET



Private Sub AxGrFingerXCtrl1_ImageAcquired(ByVal sender As System.Object, ByVal e As AxGrFingerXLib._IGrFingerXCtrlEvents_ImageAcquiredEvent) Handles AxGrFingerXCtrl1.ImageAcquired

' Copying acquired image
raw.height = e.height
raw.width = e.width
raw.res = e.res
raw.img = e.rawImage

' Signaling that an Image Event occurred.
WriteLog("Sensor: " & e.idSensor & ". Event: Image captured.")

' display the fingerprint image
PrintBiometricDisplay(False, GRConstants.GR_DEFAULT_CONTEXT)

End Sub


Delphi



procedure TGrFingerXCtrl1ImageAcquired(Sender: TObject;
const idSensor: WideString; width, height: Integer;
var rawImage: OleVariant; res: Integer);
begin
// Copying acquired image
raw.height := height;
raw.width := width;
raw.res := res;
raw.img := rawImage;

// Signaling that an Image Event occurred.
writeLog ('Sensor: ' + idSensor + '. Event: Image captured.');

// display the fingerprint image
PrintBiometricDisplay(false, GR_DEFAULT_CONTEXT);

end;