Exemplo n.º 1
0
 public void Dispose()
 {
     if (stream != null)
     {
         stream.Dispose();
         stream = null;
     }
     if (d2dRenderTarget != null)
     {
         d2dRenderTarget.Dispose();
         d2dRenderTarget = null;
     }
     if (wicBitmap != null)
     {
         wicBitmap.Dispose();
         wicBitmap = null;
     }
     if (d2dFactory != null)
     {
         d2dFactory.Dispose();
         d2dFactory = null;
     }
     if (wicFactory != null)
     {
         wicFactory.Dispose();
         wicFactory = null;
     }
     if (memStream != null)
     {
         memStream.Dispose();
     }
 }
Exemplo n.º 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing || _isDisposed)
            {
                return;
            }

            _renderTexture.Dispose();
            _wicBitmap.Dispose();
            _wicRenderTarget.Dispose();
            _sceneColorBrush.Dispose();
            OverlayBufferView.Dispose();
            _textFormat.Dispose();

            _isDisposed = true;
        }
Exemplo n.º 3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing || _isDisposed)
            {
                return;
            }

            Console.WriteLine("dsdfksdniof");
            _renderTexture.Dispose();
            _wicBitmap.Dispose();
            _wicRenderTarget.Dispose();
            _sceneColorBrush.Dispose();
            OverlayBufferRes.Dispose();
            _textFormat.Dispose();

            _isDisposed = true;
        }
Exemplo n.º 4
0
 protected virtual void Dispose(bool disposing)
 {
     if (IsDisposed)
     {
         return;
     }
     if (disposing)
     {
         shower        = null;
         whereIsShowed = null;
     }
     if (Last_Draw != null)
     {
         if (!Last_Draw.IsDisposed)
         {
             Last_Draw.Dispose();
         }
     }
     Init_action.Dispose();
     IsDisposed = true;
 }
Exemplo n.º 5
0
        public void Dispose()
        {
            if (_renderTexture != null)
            {
                _renderTexture.Dispose();
                _renderTexture = null;
            }

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

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

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

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

            if (_textFormat != null)
            {
                _textFormat.Dispose();
                _textFormat = null;
            }
        }
Exemplo n.º 6
0
 public void Dispose()
 {
     wicBitmap?.Dispose();
     imagingFactory?.Dispose();
 }