ImageEn, unit iexdcim

TIEDcimAcquire.SelectedSource

TIEDcimAcquire.SelectedSource


Declaration

property SelectedSource : Integer; (Read/Write)


Description

The index of the selected source in the source list, which will be used for subsequent calls to Acquire or CopyImages.


See Also

Sources
SourceCount
SourceNameToIndex


Example

// Retrieve all images from the first connected device
ImageEnView1.IO.AcquireParams.DCIMParams.SelectedSource := 0;
ImageEnView1.IO.AcquireParams.DCIMParams.Acquire( OnGetImage );

// Acquire from the source named, "GT-I8190T Card"
Idx := ImageEnView1.IO.AcquireParams.DCIMParams.SourceNameToIndex( 'GT-I8190T Card' );
if Idx > -1 then
begin
  ImageEnView1.IO.AcquireParams.DCIMParams.SelectedSource := Idx;
  ImageEnView1.IO.AcquireParams.DCIMParams.Acquire( OnGetImage );
end;

// Display the name of the selected device
edtSource.Text := ImageEnView1.IO.AcquireParams.DCIMParams.Sources[ fDCIM.SelectedSource ].Name;