L_ISISGetTagLongChoice

#include "l_bitmap.h"
#include "ltisi.h"

L_INT EXT_FUNCTION L_ISISGetTagLongChoice(uTag, nIndex, plValue)

L_UINT uTag;

/* ASCII tag */

L_INT32 nIndex;

/* index value */

L_INT32 L_FAR *plValue;

/* pointer to a variable */

Gets the number of possible values (or choices), or gets the value at the specified index, for the specified ISIS Scanner Driver Long Tag. This function is available in the Document/Medical Toolkits.

Parameter

Description

uTag

Value indicating the tag for which to get the specified value, or the number of possible values. For a list of possible tags, refer to ISIS Long tags.

nIndex

Index into an array of possible values (or choices) for the specified long tag. This value must be between 0 and the maximum number of values/choices - 1. Pass ISIS_DEFAULT to update plValue with the maximum number of available values/choices for the specified tag.

plValue

Pointer to a variable to be updated with the value at the specified index. If nIndex is ISIS_DEFAULT, this parameter will be updated with the maximum number of available values/choices for the specified tag.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

ISIS tags can have multiple values, also called choices. This function can be used to get the maximum number of available values/choices, or to get individual values.

To get the maximum number of available values/choices, pass ISIS_DEFAULT for nIndex. The plValue parameter will be updated with the number of available values/choices.

Required DLLs and Libraries

LTISI

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

Windows 95 / 98 / Me, Windows 2000 / XP.

See Also

Functions:

L_ISISGetTagLong, L_ISISSetTagLong, L_ISISGetTagShort, L_ISISSetTagShort, L_ISISGetTagShortChoice, L_ISISGetTagASCII, L_ISISGetTagASCIIChoice, L_ISISSetTagASCII

Topics:

Raster Image Functions: Scanning Images using ISIS

 

Using ISIS to Scan Images

 

Example

   L_INT32 lValue;
   L_INT32 lCount;
   L_INT32 x;
   L_CHAR szBuf[400];
   L_INT nRet;

   //First, get the number of choices
   nRet = L_ISISGetTagLongChoice(TAG_IMAGEWIDTH, ISIS_DEFAULT, &lCount);
   if(nRet == SUCCESS)
   {
      //get and display each choice
      wsprintf(szBuf, "There are %d choices\n", lCount);
//      ::MessageBox(NULL, szBuf, "Count", MB_OK);
      OutputDebugString(szBuf);
      for(x=0; x<lCount; x++)
      {
         //get the value
         nRet = L_ISISGetTagLongChoice(TAG_IMAGEWIDTH, x, &lValue);
         wsprintf(szBuf, "Choice: %d has Value: %d\n", x, lValue);
//         ::MessageBox(NULL, szBuf, "Value", MB_OK);
         OutputDebugString(szBuf);
      }
   }