Example #1
0
 public static ImageDrawing GetImage(ImageName imageName, Rect position)
 {
     return new ImageDrawing(GetImage(imageName), position);
 }
Example #2
0
 public static ImageSource GetImage(ImageName imageName)
 {
     var oUri = new Uri("pack://application:,,,/CaveDwellers;component/" + imageName, UriKind.RelativeOrAbsolute);
     return BitmapFrame.Create(oUri);
 }
Example #3
0
 public void AddImage(ImageName imageName, Point position, Size size)
 {
     _gameDrawing.Children.Add(ResourceProvider.GetImage(imageName, new Rect(position.X, position.Y, size.Width, size.Height)));
 }