public void Set(byte nValue, int channel)
{
if (channel < 0 | channel >= _channels) throw new ArgumentOutOfRangeException("channel", "channel must be in range [0..2].");
status = NPPNativeMethods.NPPi.MemSet.nppiSet_8u_C3CR(nValue, _devPtrRoi + channel * _typeSize, _pitch, _sizeRoi);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiSet_8u_C3CR", status));
NPPException.CheckNppStatus(status, this);
}