LWia::ResizeVideoPreview

#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.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

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.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS WIA C++ Class Library Help