コード例 #1
0
ファイル: ViewerModel.cs プロジェクト: yumaito0/k4a.net
        public void Dispose()
        {
            if (readingLoop != null)
            {
                readingLoop.Failed       -= ReadingLoop_Failed;
                readingLoop.CaptureReady -= ReadingLoop_CaptureReady;
                readingLoop.Dispose();
            }

            transformation?.Dispose();
            depthOverColorImage?.Dispose();
        }
コード例 #2
0
        public void Dispose()
        {
            if (!isDisposed)
            {
                isDisposed = true;

                readingLoop.CaptureReady -= ReadingLoop_CaptureReady;
                readingLoop.Failed       -= ReadingLoop_Failed;
                readingLoop.Dispose();

                processor.ImageUpdated -= Processor_ImageUpdated;
                processor.Stop();
                processor.Dispose();

                depthImage.Dispose();
                needUpdateBitmap.Dispose();
            }
        }
コード例 #3
0
ファイル: TrackerModel.cs プロジェクト: yumaito0/k4a.net
        public void Dispose()
        {
            if (readingLoop != null)
            {
                readingLoop.Failed       -= BackgroundLoop_Failed;
                readingLoop.CaptureReady -= ReadingLoop_CaptureReady;
                readingLoop.Dispose();
            }

            if (trackingLoop != null)
            {
                trackingLoop.Failed         -= BackgroundLoop_Failed;
                trackingLoop.BodyFrameReady -= TrackingLoop_BodyFrameReady;
                trackingLoop.Dispose();
            }

            bodyIndexMapTransformation?.Dispose();
        }