public StreamItemModel(Picture picture, FilterModel filter = null) { _picture = picture; _filter = filter; }
/// <summary> /// Apply filter to image. Notice that FilterModel may consist of many IFilter components. /// </summary> /// <param name="filter">Filter to apply</param> public void ApplyFilter(FilterModel filter) { AppliedFilters.Add(filter); foreach (IFilter f in filter.Components) { _session.AddFilter(f); } Width = _session.Dimensions.Width; Height = _session.Dimensions.Height; }