public SendPixelsValue ( int channel, PhysicalDevice rgb ) : SendStatus | ||
channel | int | |
rgb | PhysicalDevice | |
return | SendStatus |
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;
}
OpcClient.OpcPixelUniverse::SendPixelsValue ( int channel, byte rgb, int length ) : void |