ImageEn, unit iexAcquire

TIEAcquireParams.IsPixelTypeSupported

TIEAcquireParams.IsPixelTypeSupported

Declaration

function IsPixelTypeSupported(PixelType: TIEAcquirePixelType): Boolean;

Description

Returns True if the device supports acquisition using the specified PixelType.

Note:
Twain devices: Checks capabilities of both PixelType and BitDepth
WIA devices: Always returns True
DCIM: Returns True for ieapOther, otherwise False

Example

if ImageEnView1.IO.AcquireParams.IsPixelTypeSupported( TIEAcquirePixelType( cmbPixelType.ItemIndex )) = False then
  MessageDlg( 'The selected pixel type is not supported by your device.', mtError, [mbOK], 0 );