Griaule Biometrics

Home » Fingerprint SDK 2009 Developer's Manual » Programming Reference Guide » Fingerprint SDK ActiveX Reference Guide » Biometric display methods » SetBiometricDisplayColors

SetBiometricDisplayColors

Sets the colors used to draw the minutiae, matching minutiae, segments, matching segments, minutiae directions and matching minutiae directions in the picture returned by the BiometricDisplay method.

Prerequisites The Fingerprint SDK library must have been previously initialized.

Return On success, GR_OK is returned.
On failure, the appropriate error code is returned.

Parameters

[in] minutiaeColor

Minutiae color in BGR 24-bits format.

[in] minutiaeMatchedColor

Matching minutiae color in BGR 24-bits format.

[in] segmentsColor

Segments color in BGR 24-bits format.

[in] segmentsMatchedColor

Matching segments color in BGR 24-bits format.

[in] directionsColor

Minutiae direction color in BGR 24-bits format.

[in] directionsMatchedColor

Matching minutiae direction color in BGR 24-bits format.

Remarks

Passing GR_IMAGE_NO_COLOR as any color causes the corresponding feature (minutia, matching minutia, segment, matching segment, minutia direction or matching minutia direction) not being drawn.

Passing all colors as GR_IMAGE_NO_COLOR causes the default colors to be used: red for minutiae, green for segments, blue for minutiae direction and magenta for matching minutiae, segments and minutiae direction.

See also

Declaration

C++ .NET

int SetBiometricDisplayColors(int minutiaeColors, int minutiaeMatchedColors, int segmentColors, int segmentMatchedColors, int directionColors, int directionMatchedColors)

C#

int SetBiometricDisplayColors(int minutiaeColors, int minutiaeMatchedColors, int segmentColors, int segmentMatchedColors, int directionColors, int directionMatchedColors)

VB6

Function GrSetBiometricDisplayColors(ByVal minutiaeColors As Long, ByVal minutiaeMatchedColors As Long, ByVal segmentColors As Long, ByVal segmentMatchedColors As Long, ByVal directionColors As Long, ByVal directionMatchedColors As Long) As Long

VB .NET

Function GrSetBiometricDisplayColors(ByVal minutiaeColors As Integer, ByVal minutiaeMatchedColors As Integer, ByVal segmentColors As Integer, ByVal segmentMatchedColors As Integer, ByVal directionColors As Integer, ByVal directionMatchedColors As Integer) As Integer

Delphi

function GrSetBiometricDisplayColors (minutiaeColors, minutiaeMatchedColors, segmentColors, segmentMatchedColors, directionColors, directionMatchedColors: integer): integer;

Sample Code

C++ .NET

// set minutiae colors to red
int minutiaeColor=Color::Red;
int minutiaeMatchColor=Color::Red;
// don't display any other biometric info
int segmentsColor = GR_IMAGE_NO_COLOR;
int segmentsMatchColor = GR_IMAGE_NO_COLOR;
int directionsColor = GR_IMAGE_NO_COLOR;
int directionsMatchColor = GR_IMAGE_NO_COLOR;

axGrFingerXCtrl2->SetBiometricDisplayColors(minutiaeColor, minutiaeMatchColor, segmentsColor, segmentsMatchColor, directionsColor, directionsMatchColor);

C#



// set minutiae colors to red
int minutiaeColor=Color.Red;
int minutiaeMatchColor=Color.Red;
// don't display any other biometric info
int segmentsColor = (int)GRConstants.GR_IMAGE_NO_COLOR;
int segmentsMatchColor = (int)GRConstants.GR_IMAGE_NO_COLOR;
int directionsColor = (int)GRConstants.GR_IMAGE_NO_COLOR;
int directionsMatchColor = (int)GRConstants.GR_IMAGE_NO_COLOR;

axGrFingerXCtrl1.SetBiometricDisplayColors(minutiaeColor, minutiaeMatchColor, segmentsColor, segmentsMatchColor, directionsColor, directionsMatchColor);


VB6



' set minutiae colors to red
minutiaeColors = vbRed
' don't display any other biometric colors
minutiaeMatchedColors = GR_IMAGE_NO_COLOR
segmentColors = GR_IMAGE_NO_COLOR
segmentMatchedColors = GR_IMAGE_NO_COLOR
directionColors = GR_IMAGE_NO_COLOR
directionMatchedColors = GR_IMAGE_NO_COLOR

retVal= GrFingerXCtrl1.SetBiometricDisplayColors (minutiaeColors, minutiaeMatchedColors, segmentColors, segmentMatchedColors, directionColors, directionMatchedColors)


VB .NET



' set minutiae colors to red
minutiaeColors = Color.Red
' don't display any other biometric info
minutiaeMatchedColors = GR_IMAGE_NO_COLOR
segmentColors = GR_IMAGE_NO_COLOR
segmentMatchedColors = GR_IMAGE_NO_COLOR
directionColors = GR_IMAGE_NO_COLOR
directionMatchedColors = GR_IMAGE_NO_COLOR

retVal= GrFingerXCtrl1.SetBiometricDisplayColors (minutiaeColors, minutiaeMatchedColors, segmentColors, segmentMatchedColors, directionColors, directionMatchedColors)


Delphi



var
minutiaeColor: Integer;
minutiaeMatchColor: Integer;
segmentsColor: Integer;
segmentsMatchColor: Integer;
directionsColor: Integer;
directionsMatchColor: Integer;
begin
// set minutiae colors to red
minutiaeColor := clRed;
minutiaeMatchColor := clRed;
// don't display any other biometric info
segmentsColor := GR_IMAGE_NO_COLOR;
segmentsMatchColor := GR_IMAGE_NO_COLOR;
directionsColor := GR_IMAGE_NO_COLOR;
directionsMatchColor := GR_IMAGE_NO_COLOR;

GrFingerXCtrl1.SetBiometricDisplayColors(minutiaeColor, minutiaeMatchColor, segmentsColor, segmentsMatchColor, directionsColor, directionsMatchColor);

end;