We use this class instead of ImageView to test showing the image using the graphics context only
Наследование: Eto.Forms.Drawable
Пример #1
0
        Control ClearBitmapTest()
        {
            var control = new DrawableImageView
            {
                Image           = GenerateImage(),
                Size            = new Size(200, 200),
                BackgroundColor = Colors.Yellow
            };

            PropertyChanged += (sender, e) => control.Image = GenerateImage();

            return(control);
        }
Пример #2
0
		Control ClearBitmapTest()
		{
			var control = new DrawableImageView
			{
				Image = CreateImage(),
				Size = new Size(200, 200),
				BackgroundColor = Colors.Yellow
			};

			PropertyChanged += (sender, e) => control.Image = CreateImage();

			return control;
		}