예제 #1
0
 /// <summary>
 /// Creates a new instance of the ImageButton class
 /// </summary>
 /// <param name="gif">The picture of the ImageButton</param>
 public ImageButton(AnimatedGif gif)
     : base()
 {
     Picture = new ImageUnion(null, gif);
 }
예제 #2
0
 /// <summary>
 /// Creates a new instance of the Image class
 /// </summary>
 /// <param name="image">The picture of the Image, as an AnimatedGif</param>
 public Image(AnimatedGif image)
     : base()
 {
     Picture = new ImageUnion(null, image);
 }
예제 #3
0
 /// <summary>
 /// Creates a new instance of the ImageButton class
 /// </summary>
 /// <param name="tex">The picture of the ImageButton</param>
 public ImageButton(Texture2D tex)
     : base()
 {
     Picture = new ImageUnion(tex, null);
 }
예제 #4
0
 /// <summary>
 /// Creates a new instance of the Image class
 /// </summary>
 /// <param name="image">The picture of the Image, as a Texture2D</param>
 public Image(Texture2D image)
     : base()
 {
     Picture = new ImageUnion(image, null);
 }