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
- プログラミング上の注意点
- サンプルソースコード

20
■デコード処理の中断方法について
デコード関数(IMGWaitForDecode、IMGWaitForDecodeRaw)を、処理の途中で終了させるには、以
下の 2 通りの方法があります。
(1) コールバック関数を使用する方法
以下のようなコールバック関数を作成し、その関数のポインタを、IMGWaitForDecode 関数もしくは
IMGWaitForDecodeRaw関数の第 7引数( fpCallBack)に指定してください。トリガキーが押されている
間だけデコードを行う場合は、この方法を使用してください。
#define VKEY_L_TRIGGER 0x87
#define VKEY_R_TRIGGER 0x84
// Callback Function fCallBack
// Returns TRUE : L or R trigger key is pushed down
// FALSE : L or R trigger key is not pushed down
BOOL fpCallBack( VOID)
{
if( GetAsyncKeyState(VKEY_L_TRIGGER) < 0 || GetAsyncKeyState(VKEY_R_TRIGGER)
< 0)
{
return TRUE;
}
else
{
return FALSE;
}
}
(2) IMGStopDecode 関数を使用する方法
デコードを中断したいタイミングで、デコード関数(IMGWaitForDecode、IMGWaitForDecodeRaw 関
数)とは別のスレッドから IMGStopDecode 関数をコールしてください。デコード関数の第 7 引数
( fpCallBack)には NULLを指定してください。任意のタイミングでデコード処理を中断したい場合は、こ
の方法を使用してください。