LWia::ResizeVideoPreview

#include "ltwrappr.h"

virtual L_INT LWia::ResizeVideoPreview(bStretchToFitParent)

Resizes the video playback to the largest supported resolution that fits inside the parent window. Specify the parent window or control by calling the LScanner::SetWindow function.

Parameters

L_BOOL bStretchToFitParent

Specifies whether to stretch the video display to fit the parent window.  Possible values are:

Value Meaning
TRUE Stretch the video preview to fit the parent window.
FALSE Display the video in a supported resolution that is smaller than the parent window.

Returns

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

Comments

This feature is available in LEADTOOLS version 16 or higher.

[LWia:ResizeVideoPreview resizes the video playback to the largest supported resolution that fits inside the parent window. Call [LWia:ResizeVideoPreview whenever the parent window is moved or resized.

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.