Setpreviewsize – Argox PT-9130 User Manual

Page 88

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 81

SetPreviewSize

To set the x-axis coordinate、y-axis coordinate、width、height of the preview window.

DWORD SetPreviewSize

{

UINT

uiPosX

UINT

uiPosY

UINT

uiWidth

UINT

uiHeight

}

Parameters

uiPosX

[in] Specifies the x-axis coordinate to be set. Range: 0~240.

uiPosY

[in] Specifies the y-axis coordinate to be set. Range: 0~320.

uiWidth

[in] Specifies the width to be set. Range: 0~240.

uiHeight

[in] Specifies the height to be set. Range: 0~320.

Returned Values

If the action succeeds, the returned value is

E_FUNC_SUCCEED

. If the action fails, possible returned values are

E_FUNC_ERROR

,

E_FUNC_PAR_ERROR

,

CAM_ERR_DEVICE_ERROR

.

Example

UINT uiPosX, uiPosY, uiWidth, uiHeight;

uiPosX = 0;

uiPosY = 0;

uiWidth = 240;

uiHeight = 320;

if(SetPreviewSize(uiPosX, uiPosY, uiWidth, uiHeight) != E_FUNC_SUCCEED)

AfxMessageBox(_T("Set preview size fail"));

Requirements

OS Versions: Windows CE 6.0 or beyond.

Header: sysapiax.h

Link Library: sysapiax.lib

Link DLL: sysapiax.dll
Device: PT90

Advertising