예제 #1
0
        public ManagedSurface(IImageLoaderInternal imageLoader, Uri uri, Size size)
        {
            _imageLoader = imageLoader;
            _uri = uri;
            _surface = _imageLoader.CreateSurface(size);

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

            _imageLoader.DeviceReplacedEvent += OnDeviceReplaced;
        }
예제 #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;
        }
예제 #4
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;
        }