diff --git a/Server/Handle Packet/HandleRemoteDesktop.cs b/Server/Handle Packet/HandleRemoteDesktop.cs index 3515d86..59b8e36 100644 --- a/Server/Handle Packet/HandleRemoteDesktop.cs +++ b/Server/Handle Packet/HandleRemoteDesktop.cs @@ -35,8 +35,11 @@ public void Capture(Clients client, MsgPack unpack_msgpack) byte[] RdpStream = unpack_msgpack.ForcePathObject("Stream").GetAsBytes(); lock (RD.syncPicbox) { - using (MemoryStream stream = new MemoryStream(RdpStream)) - RD.GetImage = RD.decoder.DecodeData(stream); + using (MemoryStream stream = new MemoryStream(RdpStream)){ + var StreamDecodeData = RD.decoder.DecodeData(stream); + RD.GetImage = StreamDecodeData; + RD.rdSize = StreamDecodeData.Size; + } RD.pictureBox1.Image = RD.GetImage; RD.FPS++;