public void Process(RgbFrame frame) { if (frame == null) return; var message = new DesktopWindowImageFrameMessage(RdapImagePixelFormatType.PIX_FMT_RGB24, (uint)frame.Width, (uint)frame.Height, frame.Data); var dataToSend = new RdapMessage(RdapMessageType.DesktopWindowImageFrameMessage, message.ToBytes()).ToBytes(); client.Send(dataToSend, 0, dataToSend.Length); }
public void Process(RgbFrame frame) { Image snapShot = RgbFrameFactory.CreateBitmap((RgbFrame) frame); snapShot.Save(FolderPath + baseFileName + "_" + fileIndex + ".jpg"); fileIndex++; }