#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.
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. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
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
For an example, refer to LWia::IsVideoPreviewAvailable.