public static WpfControls.ListView add_Video_Image_Wpf(this WpfControls.ListView listView, string pathToImage, int width, int height)
		{
			return (WpfControls.ListView)listView.wpfInvoke(
				()=>{									
						var image = new API_AForge_Video_Image().open(pathToImage);
						if (image.isNull())
							return listView;	
						if (width > -1)
							image.width_Wpf(width);
						if (height > -1)
							image.height_Wpf(height);	
						listView.add_Item(image);
						return listView;
					});
		}
Example #2
0
 public static WpfControls.ListView add_Video_Image_Wpf(this WpfControls.ListView listView, string pathToImage, int width, int height)
 {
     return((WpfControls.ListView)listView.wpfInvoke(
                () => {
         var image = new API_AForge_Video_Image().open(pathToImage);
         if (image.isNull())
         {
             return listView;
         }
         if (width > -1)
         {
             image.width_Wpf(width);
         }
         if (height > -1)
         {
             image.height_Wpf(height);
         }
         listView.add_Item(image);
         return listView;
     }));
 }