static L_INT LScreenCapture::GetCaptureOption(pOptions, uStructSize)
Gets the current options for image capture such as HotKey, Delay, and Count.
Pointer to the LEADCAPTUREOPTION structure to be filled with the current capture options.
Size in bytes, of the structure pointed to by pOptions. Use sizeof(LEADCAPTUREOPTION).
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Use this function to get the current image capture options. For information on the default capture options, refer to LEADCAPTUREOPTION.
Win32, x64.
L_INT LScreenCapture__GetCaptureOptionExample()
{
L_INT nRet;
LEADCAPTUREOPTION CaptureOption;
/*Example for LScreenCapture::SetCaptureOption & LScreenCapture::GetCaptureOption
/* get current capture options */
nRet = LScreenCapture::GetCaptureOption(&CaptureOption, sizeof(LEADCAPTUREOPTION));
if(nRet != SUCCESS)
return nRet;
/* change the hot key to F6 */
CaptureOption.nHotKey = VK_F6;
/* set the new options */
nRet = LScreenCapture::SetCaptureOption(&CaptureOption);
if(nRet != SUCCESS)
return nRet;
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document