
Webcam32 provides the capability to invoke an external Windows DLL to process the image before it is uploaded to the web page or transmitted directly to the browser. If a DLL file is specified and enabled, a function called Process() in the DLL is called and passed the raw image captured from the camera. The function can change the image or even allocate a new image. When the function returns, this image will be the one used by subsequent Webcam32 operations.
The functional interface to Process() is as follows:
BOOL Process(
LPBYTE *pImage,
unsigned int *iWidth,
unsigned int *iHeight
)
| Parameter | Description |
| pImage | Pointer to an array or Red Green Blue (RGB) values. The storage for the array has been allocated with malloc() and should be released with free() if a new array is to be returned. The size of the array is 3 x *iWidth x *iHeight |
| iWidth | A pointer to an integer width (in pixels) of the image |
| iHeight | A pointer to and integer height (in pixels) of the image |