예제 #1
0
 public void AddSprite(ImageElement image, float handleX, float handleY)
 {
     Sprite sprite = new Sprite();
     sprite.Image = image;
     sprite.HandleX = handleX;
     sprite.HandleY = handleY;
     Sprites.Add(sprite);
 }
예제 #2
0
 public void AddSprites(ImageElement[] images, float handleX, float handleY)
 {
     foreach (ImageElement image in images)
     {
         Sprite sprite = new Sprite();
         sprite.Image = image;
         sprite.HandleX = handleX;
         sprite.HandleY = handleY;
         Sprites.Add(sprite);
     }
 }