예제 #1
0
    bool OnIdleUpdate()
    {
        if (camera == null)
        {
            return(false);
        }

        Rendering.WaitOne();

        if (camera.IsOpen() && camera.IsStreaming())
        {
            if (OriginalImage != null)
            {
                OriginalImage.Dispose();
                OriginalImage = Capture.ProcessPixbuf(camera);
            }

            CollectGarbage();
        }

        RenderImage();

        UpdatePattern();

        Redraw(cameraImage);

        Rendering.ReleaseMutex();

        return(true);
    }