public static Canvas Receive(Lidgren.Network.NetIncomingMessage message, Palette pal) { var width = message.ReadVariableInt32(); var height = message.ReadVariableInt32(); message.ReadPadBits(); var stream = message.ReadStream(); var canvas = new MemoryCanvas(new Size(width, height)); Pablo.Load(stream, canvas, pal); return(canvas); }