LWia::AcquireImageFromVideo

#include "ltwrappr.h"

virtual L_INT LWia::AcquireImageFromVideo(pszFileName, puLength)

Extracts a still image from a video stream and saves the image as a JPEG file.

Parameters

L_TCHAR * pszFileName

The full path and filename of the JPEG file that this method creates.

L_SIZE_T * puLength

Pointer to a variable containing the user-allocated string buffer length. It is always updated with the exact required string buffer length.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

LWia:AcquireImageFromVideo is available in LEADTOOLS [version 16 or higher.

To retrieve the required string buffer length, declare a variable of type L_SIZE_T and pass the address of that variable to [LWia:AcquireImageFromVideo, and also pass NULL for the pszFileName parameter. Then use the returned buffer length to allocate the string buffer with the exact required buffer length. [LWia:AcquireImageFromVideo saves the image to the images directory in this case.

Required DLLs and Libraries

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS WIA C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.