Пример #1
0
        /// <summary>
        /// Raises the destroy event.
        /// </summary>
        void OnDestroy()
        {
#if WINDOWS_UWP && !DISABLE_HOLOLENSCAMSTREAM_API
            webCamTextureToMatHelper.frameMatAcquired -= OnFrameMatAcquired;
#endif
            webCamTextureToMatHelper.Dispose();
            imageOptimizationHelper.Dispose();
        }
Пример #2
0
 /// <summary>
 /// Raises the destroy event.
 /// </summary>
 void OnDestroy()
 {
     imageOptimizationHelper.Dispose();
     #if NETFX_CORE && !DISABLE_HOLOLENSCAMSTREAM_API
     webCamTextureToMatHelper.frameMatAcquired -= OnFrameMatAcquired;
     #endif
     webCamTextureToMatHelper.Dispose();
 }
        /// <summary>
        /// Raises the destroy event.
        /// </summary>
        void OnDestroy()
        {
            imageOptimizationHelper.Dispose();
#if WINDOWS_UWP && !DISABLE_HOLOLENSCAMSTREAM_API
            webCamTextureToMatHelper.frameMatAcquired -= OnFrameMatAcquired;
#endif
            webCamTextureToMatHelper.Dispose();

            if (rectangleTracker != null)
            {
                rectangleTracker.Dispose();
            }
        }