private void SamplePage_Unloaded(object sender, RoutedEventArgs e) { _valueTimerXSlider.Dispose(); _valueTimerYSlider.Dispose(); _valueTimerScaleSlider.Dispose(); _imageLoader.Dispose(); }
private void ImplicitAnimationTransformer_Unloaded(object sender, RoutedEventArgs e) { foreach (var brush in _imageBrushList) { brush.Dispose(); } _imageLoader.Dispose(); }
/// <summary> /// Clean up resources on unload /// </summary> private void Page_Unloaded(object sender, RoutedEventArgs e) { _capabilities.Changed -= HandleCapabilitiesChanged; if (_imageSurfaceBrush != null) { _imageLoader.Dispose(); _imageSurfaceBrush.Dispose(); } }
private void SamplePage_Unloaded(object sender, Windows.UI.Xaml.RoutedEventArgs e) { if (_imageMaskSurface != null) { _imageMaskSurface.Dispose(); } if (_imageLoader != null) { _imageLoader.Dispose(); } }
void Load(SafeUri uri) { timer = Log.DebugTimerStart(); if (loader != null) { loader.Dispose(); } loader = ImageLoader.Create(uri); loader.AreaPrepared += HandlePixbufPrepared; loader.AreaUpdated += HandlePixbufAreaUpdated; loader.Completed += HandleDone; loader.Load(uri); }
/// <summary> /// Cleanup our resources and stop video playback. /// </summary> public void Cleanup() { if (_mediaPlayer != null) { _mediaPlayer.Dispose(); } if (_videoSurface != null) { _videoSurface.Dispose(); } if (_circleSurface != null) { _imageLoader.Dispose(); _circleSurface.Dispose(); } }
/// <summary> /// Cleans up any remaining surfaces. /// </summary> public void Dispose() { _circleMaskSurface.Dispose(); _imageLoader.Dispose(); }