procedure PrintBiometricDisplay(biometricDisplay: boolean; context: Integer);
var
handle: HBitmap;
hdc: LongInt;
begin
{$IFOPT R+}
{$DEFINE CKRANGE}
{$R-}
{$ENDIF}
hdc := GetDC(HWND(nil));
if biometricDisplay then
GrBiometricDisplay(template.tpt,raw.img, raw.width, raw.height,raw.Res, hdc,
handle, context)
else
GrCapRawImageToHandle(raw.img, raw.width, raw.height, hdc, handle);
if handle <> 0 then
begin
Fdetalle.image.Picture.Bitmap.Handle := handle;
Fdetalle.image.Repaint();
end;
ReleaseDC(HWND(nil), hdc);
{$IFDEF CKRANGE}
{$UNDEF CKRANGE}
{$R+}
{$ENDIF}
end;