public void PacketReconstructedCBHandler(int FileID, byte[] filebyte, int bytesRead) { CodecUtility aCodec = new CodecUtility(); SetLatestFrame(aCodec.DecompressJPEGArrayToBpm(filebyte)); //Call the callback if (aNewBitmapReceivedEvent != null) { aNewBitmapReceivedEvent(GetLatestFrame()); } }