public ManagedSurface(IImageLoaderInternal imageLoader, Uri uri, Size size)
        {
            _imageLoader = imageLoader;
            _uri = uri;
            _surface = _imageLoader.CreateSurface(size);

            _imageLoader.DeviceReplacedEvent += OnDeviceReplaced;
        }
Beispiel #2
0
        public ManagedSurface(IImageLoaderInternal imageLoader, Uri uri, Size size)
        {
            _imageLoader = imageLoader;
            _uri         = uri;
            _surface     = _imageLoader.CreateSurface(size);

            _imageLoader.DeviceReplacedEvent += OnDeviceReplaced;
        }
Beispiel #3
0
        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;
        }