类型定义 | |
| typedef void(CALLBACK * | KSJ_PREVIEWCALLBACK )(unsigned char *pImageData, int nWidth, int nHeight, int nBitCount, void *lpContext) |
| KSJ_PREVIEWCALLBACK. | |
| typedef void(CALLBACK * | KSJ_PREVIEWCALLBACKEX )(HDC hDC, unsigned char *pImageData, int nWidth, int nHeight, int nBitCount, void *lpContext) |
| KSJ_PREVIEWCALLBACKEX. | |
函数 | |
| KSJ_API int __stdcall | KSJ_PreviewSetCallback (int nIndex, KSJ_PREVIEWCALLBACK pfPreviewCallback, void *lpContext) |
| KSJ_PreviewSetCallback. | |
| KSJ_API int __stdcall | KSJ_PreviewSetCallbackEx (int nIndex, KSJ_PREVIEWCALLBACKEX pfPreviewCallbackEx, void *lpContext) |
| KSJ_PreviewSetCallbackEx. | |
| typedef void(CALLBACK * KSJ_PREVIEWCALLBACK)(unsigned char *pImageData, int nWidth, int nHeight, int nBitCount, void *lpContext) |
KSJ_PREVIEWCALLBACK.
-----------------------------------------------------------------------------
预览回调函数指针的声明
| pImageData | [out] 预览图像的数据指针 | |
| pnWidth | [out] 返回图像的宽度(像素) | |
| pnHeight | [out] 返回图像的高度(像素) | |
| pnBitCount | [out] 返回当前视场模式设置下的实际采集图像的位图深度 | |
| lpContext | [out] 用户传入的上下文指针,这个指针就是用户调用KSJ_PreviewSetCallback函数时传给lpContext的指针 |
-----------------------------------------------------------------------------
| typedef void(CALLBACK * KSJ_PREVIEWCALLBACKEX)(HDC hDC, unsigned char *pImageData, int nWidth, int nHeight, int nBitCount, void *lpContext) |
KSJ_PREVIEWCALLBACKEX.
-----------------------------------------------------------------------------
预览回调函数指针的声明
| hDC | [out] KSJApi库创建的内存DC,预览图像已经作为相机无关位图被选入此DC(相机环境句柄)中,用户可以使用此DC并调用GDI函数在此DC(相机环境句柄)上绘制需要添加显示的内容 | |
| pImageData | [out] 预览图像的数据指针 | |
| pnWidth | [out] 返回图像的宽度(像素) | |
| pnHeight | [out] 返回图像的高度(像素) | |
| pnBitCount | [out] 返回当前视场模式设置下的实际采集图像的位图深度 | |
| lpContext | [out] 用户传入的上下文指针,这个指针就是用户调用KSJ_PreviewSetCallback函数时传给lpContext的指针 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_PreviewSetCallback | ( | int | nIndex, | |
| KSJ_PREVIEWCALLBACK | pfPreviewCallback, | |||
| void * | lpContext | |||
| ) |
KSJ_PreviewSetCallback.
-----------------------------------------------------------------------------
设置预览回调函数
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pfPreviewCallback | [in] 回调函数指针 | |
| lpContext | [out] 用户传入的上下文指针 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_PreviewSetCallbackEx | ( | int | nIndex, | |
| KSJ_PREVIEWCALLBACKEX | pfPreviewCallbackEx, | |||
| void * | lpContext | |||
| ) |
KSJ_PreviewSetCallbackEx.
-----------------------------------------------------------------------------
设置预览回调函数
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pfPreviewCallbackEx | [in] 回调函数指针 | |
| lpContext | [out] 用户传入的上下文指针 |
-----------------------------------------------------------------------------