GetExtendedImageInfo example for C++ Builder
int __fastcall TForm1::LEADTwain1AcquirePageEvent(TBITMAPHANDLE Bitmap)
{
L_INT i;
L_INT nRet;
TW_INFO twInfos[2];
TW_INFO twInfo;
pTW_EXTIMAGEINFO pExtImg= NULL;
twInfos[0].InfoID= TWEI_BARCODECOUNT;
twInfos[0].ItemType= TWTY_UINT32;
twInfos[1].InfoID= TWEI_BARCODETYPE;
twInfos[1].ItemType= TWTY_UINT32;
nRet= LEADTwain1->CreateExtendedInfo ( &pExtImg, twInfos, 2 );
if ( (nRet == SUCCESS) && ( pExtImg != NULL ))
{
if ( LEADTwain1->GetExtendedImageInfo ( pExtImg ) == SUCCESS )
{
for ( i= 0; i < 2; i ++ )
{
LEADTwain1->GetExtendedInfo ( pExtImg, i, &twInfo );
// Do processing to returned values
}
LEADTwain1->FreeExtendedImageInfoStructure ( &pExtImg );
}
}
return nRet;
}