SetCapabilityNumRange

#include "BiTwain.h"

 

int CALLBACK SetCapabilityNumRange(DWORD dwCap, double dMin, double dMax, double dStep, double dCurr, double dDef)

Description

This function specifies the values of the capability. You should use this function if the capability container type is TWON_RANGE and type of the value is numeric.

Parameters

DWORD

dwCap

Capability ID. For example ICAP_BRIGHTNESS

double

dMin

Minimum value of the range to set.

double

dMax

Maximum value of the range to set.

double

dStep

Differention between two neighbouring value in the range to set.

double

dCurr

Current value of the specified capability to set.

double

dDef

Default value of the specified capability to set.

Return values

Returns TW_OK on success, otherwise the error code.

Requirements

Header :     Declared in BiTwain.h; include BiTwain.h.

Library :    Use BiTwain.lib.

DLLs :       BiTwain.dll.