L_WiaResizeVideoPreview

#include "ltwia.h"

L_LTWIA_API L_INT EXT_FUNCTION L_WiaResizeVideoPreview(hSession, bStretchToFitParent)

HWIASESSION hSession;

handle to an existing WIA session

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.

Parameter Description
hSession Handle to an existing WIA session. This handle is obtained by calling the L_WiaInitSession function.
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 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.

Platforms

Since WIA does not support video devices in Windows Server 2003, Windows Vista or later, then this function will only work with Windows XP or earlier operating systems.

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