public override void updateHook() { if (captureTimer.elapsed) { Textures textures = OgreWindow.Instance.textures; //byte[] capFrameBytes = OgreWindow.Instance.getCapSerialized(OgreWindow.imgFmt.JPG); Bitmap bmp = OgreWindow.Instance.getCap(); if (bmp == null) { goto end; } byte[] rgbData = textures.ConvertImageToRgbValues(bmp); textures.Replace2(rgbData, capTexture); //OgreWindow.Instance.setCapStatusImage(capFrameBytes); //sendCap(capFrameBytes); //OgreWindow.Instance.textures.Replace2(capFrameBytes, capTexture); end: captureTimer.start(); } }