TImageEnMIO.SelectedAcquireSource
Declaration
property SelectedAcquireSource : TIEAcquireSource; (Read-only)
Description
Return the acquisition source that is currently active due to selection by the user with
SelectAcquireSource or programmatically using
SetAcquireSource.
A
TIEAcquireSource record is returned that provides meta information about the device (SelectedAcquireSource.Name, SelectedAcquireSource.DeviceType) and technical details (SelectedAcquireSource.Api, SelectedAcquireSource.Location).
If no device is selected then SelectedAcquireSource.Api will be ieaNone.
See Also
◼SelectAcquireSource
◼SetAcquireSource
// Display the selected source
if ImageEnMView1.MIO.SelectedAcquireSource.Api = ieaNone then
ShowMessage('No device is selected')
else
ShowMessage('The selected device is ' + ImageEnMView1.MIO.SelectedAcquireSource.Name);
// Read and restore the selected source
var
sDevice : string;
ADevice : TIEAcquireSource;
begin
..
// Read the selected device
sDevice := AcquireSourceToStr(ImageEnMView1.MIO.SelectedAcquireSource);
..
end;
var
sDevice : string;
ADevice : TIEAcquireSource;
begin
..
// Restore the device selection
ADevice := StrToAcquireSource(sDevice);
ImageEnMView1.MIO.SetAcquireSource(ADevice.Api, ADevice.Location);
..
end;