public void SetChannel(StegoColorChannel colorChannel) { if (!_colorChannels.ContainsKey(colorChannel.ColorChannel)) { _colorChannels.Add(colorChannel.ColorChannel, colorChannel); } else { _colorChannels[colorChannel.ColorChannel] = colorChannel; } }
public void SetChannel(ColorChannel colorChannel, byte colorValue) { var stegoColorChannel = new StegoColorChannel(colorChannel, colorValue); SetChannel(stegoColorChannel); }