public void Dispose() { _surface.Dispose(); _imageLoader.DeviceReplacedEvent -= OnDeviceReplaced; _surface = null; _imageLoader = null; }
public ManagedSurface(IImageLoaderInternal imageLoader, Uri uri, Size size) { _imageLoader = imageLoader; _uri = uri; _surface = _imageLoader.CreateSurface(size); _imageLoader.DeviceReplacedEvent += OnDeviceReplaced; }
public ManagedSurface(IImageLoaderInternal imageLoader, Uri uri, Size size) { _imageLoader = imageLoader; _uri = uri; _surface = _imageLoader.CreateSurface(size); _imageLoader.DeviceReplacedEvent += OnDeviceReplaced; }
public CircleSurface(IImageLoaderInternal imageLoader, float radius, Color color) { _imageLoader = imageLoader; _radius = radius; _color = color; _surface = _imageLoader.CreateSurface(new Size(radius * 2, radius * 2)); _imageLoader.DeviceReplacedEvent += OnDeviceReplaced; }
public CircleSurface(IImageLoaderInternal imageLoader, float radius, Color color) { _imageLoader = imageLoader; _radius = radius; _color = color; _surface = _imageLoader.CreateSurface(new Size(radius * 2, radius * 2)); _imageLoader.DeviceReplacedEvent += OnDeviceReplaced; }
public void Dispose() { _surface.Dispose(); _imageLoader.DeviceReplacedEvent -= OnDeviceReplaced; _surface = null; _imageLoader = null; _uri = null; }