Exemplo n.º 1
0
 internal static CameraFilterData Translate(CameraFilter filter)
 {
     CameraFilterData data = new CameraFilterData();
       data.Name = filter.Name;
       data.Uri = filter.Uri;
       return data;
 }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            bool result = false;

            if (obj != null)
            {
                CameraFilter second = obj as CameraFilter;
                if (second != null && this.Id == second.Id)
                {
                    result = true;
                }
            }

            return(result);
        }
Exemplo n.º 3
0
        public IList<CameraFilter> GetCameraFilters()
        {
            List<CameraFilter> filters = new List<CameraFilter>();

              try
              {
            FilterInfoCollection localFilters = new FilterInfoCollection(FilterCategory.VideoInputDevice);
            for (int i = 0; i < localFilters.Count; i++)
            {
              CameraFilter filter = new CameraFilter(localFilters[i].MonikerString) { Name = localFilters[i].Name };
              filters.Add(filter);
            }
              }
              catch (ApplicationException ex)
              {
            ExceptionHandler.Handle(ex);
              }

              return filters;
        }