Esempio n. 1
0
 public StreamItemModel(Picture picture, FilterModel filter = null)
 {
     _picture = picture;
     _filter  = filter;
 }
Esempio n. 2
0
        /// <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;
        }
Esempio n. 3
0
 public StreamItemModel(Picture picture, FilterModel filter = null)
 {
     _picture = picture;
     _filter = filter;
 }