User manual - イメージャライブラリマニュアルver.1.06(2012年3月29日)
Table Of Contents
- 概要
- 動作環境
- 関数
- IMGInit
- IMGDeinit
- IMGConnect
- IMGDisconnect
- IMGSetDecodeMode
- IMGGetDecodeMode
- IMGWaitForDecode
- IMGWaitForDecodeRaw
- IMGStopDecode
- IMGSetDecodeWindow
- IMGGetDecodeWindow
- IMGSetDecodeReverse
- IMGGetDecodeReverse
- IMGGetImage
- IMGStartStream
- IMGGetStreamData
- IMGStopStream
- IMGCaptureSign
- IMGSetAusPost
- IMGGetAusPost
- IMGSetAztec
- IMGGetAztec
- IMGSetBPO
- IMGGetBPO
- IMGSetCanPost
- IMGGetCanPost
- IMGSetCodabar
- IMGGetCodabar
- IMGSetCodablock
- IMGGetCodablock
- IMGSetCode11
- IMGGetCode11
- IMGSetCode128
- IMGGetCode128
- IMGSetCode32
- IMGGetCode32
- IMGSetCode39
- IMGGetCode39
- IMGSetCode49
- IMGGetCode49
- IMGSetCode93
- IMGGetCode93
- IMGSetComposite
- IMGGetComposite
- IMGSetDataMatrix
- IMGGetDataMatrix
- IMGSetDutchPost
- IMGGetDutchPost
- IMGSetEAN13
- IMGGetEAN13
- IMGSetEAN8
- IMGGetEAN8
- IMGSetHX
- IMGGetHX
- IMGSetIATA
- IMGGetIATA
- IMGSetITF
- IMGGetITF
- IMGSetISBT
- IMGGetISBT
- IMGSetMaxicode
- IMGGetMaxicode
- IMGSetMicroPDF
- IMGGetMicroPDF
- IMGSetMSI
- IMGGetMSI
- IMGSetOCR
- IMGGetOCR
- IMGSetPDF417
- IMGGetPDF417
- IMGSetPlanet
- IMGGetPlanet
- IMGSetPostnet
- IMGGetPostnet
- IMGSetQR
- IMGGetQR
- IMGSetRSS
- IMGGetRSS
- IMGSetTLC39
- IMGGetTLC39
- IMGSetUPCA
- IMGGetUPCA
- IMGSetUPCE
- IMGGetUPCE
- IMGSetMesa
- IMGGetMesa
- IMGSetJaPost
- IMGGetJaPost
- IMGAimerOn
- IMGIlluminationOn
- IMGSetAimer
- IMGGetAimer
- IMGSetIllumination
- IMGGetIllumination
- IMGSetIlluminationEx
- IMGGetIlluminationEx
- IMGSetScanMode
- IMGGetScanMode
- IMGSetImagerAPO
- IMGGetImagerAPO
- IMGSetPrintWeight
- IMGGetPrintWeight
- IMGSetLED
- IMGGetLED
- IMGSetBuzzer
- IMGGetBuzzer
- IMGSetVibrator
- IMGGetVibrator
- IMGSetDeliberation
- IMGGetDeliberation
- IMGSetDecodeCenteringWindow
- IMGGetDecodeCenteringWindow
- IMGLoadConfigFile
- IMGSaveConfigFile
- IMGMakeImageFile
- IMGSetDecodePreview
- IMGGetDecodePreview
- IMGStartPreview
- IMGStopPreview
- IMGSetFocus
- IMGGetFocus
- プログラミング上の注意点
- サンプルソースコード

227
IMGSetDeliberation(IMG_DECODE_QUICK);
break;
case WM_DESTROY:
SetEvent( g_hDecodeEvent[ 1]);
IMGDisconnect();
IMGDeinit();
WaitForSingleObject( hDecodeThread, INFINITE);
CloseHandle( hDecodeThread);
CloseHandle( g_hDecodeEvent[ 1]);
CloseHandle( g_hDecodeEvent[ 0]);
PostQuitMessage( 0);
break;
default:
return DefWindowProc( hWnd, message, wParam, lParam);
}
return 0;
}
DWORD WINAPI DecodeThread( LPVOID pParameter)
{
BOOL bDecodeLoop = TRUE;
DWORD dwObjectNum, dwLength;
int nResult;
TCHAR chCodeID, chAimID, chModifier, szDecodeMessage[ 512];
while( bDecodeLoop)
{
dwObjectNum = WaitForMultipleObjects( 2, g_hDecodeEvent, FALSE, INFINITE);
switch( dwObjectNum)
{
case WAIT_OBJECT_0:
nResult = IMGWaitForDecode( 20000, szDecodeMessage, &chCodeID, &chAimID,
&chModifier, &dwLength, NULL);
if ( nResult == IMG_SUCCESS)
{
SetWindowText( g_hEditMessage, szDecodeMessage);
}
break;
case ( WAIT_OBJECT_0+1):
bDecodeLoop = FALSE;
break;
}
}
ExitThread( 0);
return 0;
}