getting the name of the camera
Posted: Sun Sep 28, 2014 5:49 am
i have a form with 2 image viewers on it. i want to place a label above each viewer identifying the camera it is displaying. is this how i get the name of the name. it doesn't seem to be working.
Code: Select all
if (_slaveViewers[0].CaptureDevice != null)
{
Camera1Name.Text = _slaveViewers[0].CaptureDevice.FriendlyName;
}
if (_slaveViewers[1].CaptureDevice != null)
{
Camera2Name.Text = _slaveViewers[1].CaptureDevice.FriendlyName;
}