public SendStatus SendPixelsValue(int channel, PhysicalDevice.PixelRGBByte[] rgb) { byte[] rgbArray = new byte[rgb.Length * 3]; int bytePos = 0; for (int i = 0; i < rgb.Length; i++) { rgbArray[bytePos++] = rgb[i].R; rgbArray[bytePos++] = rgb[i].G; rgbArray[bytePos++] = rgb[i].B; } this.opcClient.Send(this.opcChannel, (byte)0, rgbArray); return SendStatus.NotSet; }