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