Exemplo n.º 1
0
		void SizeSprite (Sprite sprite) {
			var resizable = sprite as SlicedSprite;
			if (resizable != null)
				resizable.Resize (this.Size.ToVector2 ());
		}
Exemplo n.º 2
0
		public ImageView (Sprite sprite, LayoutSpec spec = null) : base(spec) {
			this.Sprite = sprite;
			this.Color = Vector4.One;
		}