Esempio n. 1
0
 /// <summary>
 /// Provides a factory method for all the <see cref="RgbChannels"/>
 /// implementing the <see cref="IChannel"/>.
 /// </summary>
 public IChannel Get(RgbChannels filter)
 => filter
 switch
 {
Esempio n. 2
0
 public ApplyRgbChannelFilterEventArgs(RgbChannels channel) : base()
 {
     Channel = channel;
 }
 public IRgbFilter Get(RgbChannels channel)
 => _factory.Get(channel);
Esempio n. 4
0
 /// <inheritdoc/>
 public Bitmap Apply(Bitmap bmp, RgbChannels color)
 => _cache.GetOrCreate(color,
                       () => _rgb.Get(color).Filter(bmp)
                       );