示例#1
0
 public StreamItemModel(Picture picture, FilterModel filter = null)
 {
     _picture = picture;
     _filter  = filter;
 }
示例#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;
        }
示例#3
0
 public StreamItemModel(Picture picture, FilterModel filter = null)
 {
     _picture = picture;
     _filter = filter;
 }