Esempio n. 1
0
        public void AddImage(ImageSource bitmapImage)
        {
            Viewport3DControl image = new Viewport3DControl();

            image.SetImageSource(ref bitmapImage);
            image.Index      = _images.Count;
            image.Width      = ChildViewWidth;
            image.Height     = ChildViewHeight;
            image.MouseDown += new MouseButtonEventHandler(image_MouseDown);
            LayoutRoot.Children.Add(image);
            posImage(image, _images.Count);
            _images.Add(image);
        }
Esempio n. 2
0
 public void AddImages(string[] imagesUri)
 {
     for (int i = 0; i < imagesUri.Length; i++)
     {
         string            url   = imagesUri[i];
         Viewport3DControl image = new Viewport3DControl();
         image.SetImageSource(url);
         image.Index      = i;
         image.Width      = ChildViewWidth;
         image.Height     = ChildViewHeight;
         image.MouseDown += new MouseButtonEventHandler(image_MouseDown);
         LayoutRoot.Children.Add(image);
         posImage(image, i);
         _images.Add(image);
     }
 }