public WorkStatus GetWorkStatus(string name) { WorkStatus status = new WorkStatus(); foreach (CHKDVRDevice device in mVideoDevices.Values) { IHKDVRVideoSource play = device.GetPlayer(name) as IHKDVRVideoSource; if (play != null) { device.GetWorkStatus(play.Channel, ref status); break; } } return(status); }
public bool SetOsdBitmap(string name, Bitmap image, float transparence) { foreach (CHKDVRDevice device in mVideoDevices.Values) { IHKDVRVideoSource play = device.GetPlayer(name) as IHKDVRVideoSource; if (play != null) { play.ImageDrawer.DrawImage = image; play.ImageDrawer.Transparence = transparence; if (play.ImageDrawer.DrawImage != null && !play.ImageDrawer.IsDrawImage) { play.ImageDrawer.IsDrawImage = true; } return(true); } } return(false); }