//=========================================================================================== //Matrix Frame Functions //=========================================================================================== public void SetupFrameObject(int width, int height) { frame = null; frame = new MatrixFrame(width, height); scRec = new ScreenRecorder(); MatrixBitmap = new WriteableBitmap(frame.Width, frame.Height, 96, 96, PixelFormats.Bgr32, null); MatrixImage.Source = MatrixBitmap; MatrixPreviewGroup.Text = " Matrix Preview: " + frame.Width.ToString() + "x" + frame.Height.ToString(); SetupSCUI(); MIConnect.IsEnabled = false; ap = new AudioProcesser(FFTCallback); RefreshAudioDeviceList(); }
void AbortOutlineThread() { ScreenRecorder.doOutline = false; if (outlineThread != null) { outlineThread.Abort(); while (outlineThread.IsAlive) { ; } } ScreenRecorder.HideOutline(); }
void StartOutlineThread() { outlineThread = new Thread(() => ScreenRecorder.ShowOutline()); outlineThread.Start(); }
void StartCaptureAsync() { _fpsStopWatch = Stopwatch.StartNew(); captureThread = new Thread(() => ScreenRecorder.StartRecording(PixelDataCallback)); captureThread.Start(); }