Sets the colors used to draw the minutiae, matching minutiae, segments, matching segments, minutiae directions and matching minutiae directions in the bitmap returned by the GrBiometricDisplay function.
| 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. |
| [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. |
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.
C++
int __stdcall GrSetBiometricDisplayColors(int minutiaeColors, int minutiaeMatchedColors, int segmentColors, int segmentMatchedColors, int directionColors, int directionMatchedColors);
Delphi
function GrSetBiometricDisplayColors (minutiaeColors, minutiaeMatchedColors, segmentColors, segmentMatchedColors, directionColors, directionMatchedColors: Integer): Integer; stdcall;
C++
// 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;
GrSetBiometricDisplayColors(minutiaeColor, minutiaeMatchColor, segmentsColor, segmentsMatchColor, directionsColor, directionsMatchColor);
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;
GrSetBiometricDisplayColors(minutiaeColor, minutiaeMatchColor, segmentsColor, segmentsMatchColor, directionsColor, directionsMatchColor);
end;