#include "ltwrappr.h"
virtual L_INT LWia::ResizeVideoPreview(bStretchToFitParent)
L_BOOL bStretchToFitParent; |
specifies whether the video display is stretched to fit the parent window |
Resizes the video playback to the largest supported resolution that fits inside the parent window. You can specify the parent window or control by calling the Scanner::SetWindow function.
Parameter | Description | |
bStretchToFitParent | Specifies whether the video display is stretched to fit the parent window. Possible values are: | |
Value | Meaning | |
TRUE | Stretch the video preview to fit the parent window. | |
FALSE | Video is displayed in a supported resolution smaller than the parent window. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
This feature is available in LEADTOOLS version 16 or higher.
This function will resize the video playback to the largest supported resolution that fits inside the parent window. Call this method whenever the parent window is moved or resized.
Required DLLs and Libraries
LTWIA For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Functions: |
LWia::StartVideoPreview, LWia::EndVideoPreview, LWia::AcquireImageFromVideo, LWia::IsVideoPreviewAvailable, LWia::InitSession, LWia::EndSession, Class Members |
Topics: |
|
|
For an example, refer to LWia::IsVideoPreviewAvailable.