public static API_AForge_Video add_Images(this API_AForge_Video aforgeVideo, List <Bitmap> bitmaps) { foreach (var bitmap in bitmaps) { aforgeVideo.add_Image(bitmap); } return(aforgeVideo); }
public static API_AForge_Video add_Images(this API_AForge_Video aforgeVideo, List <string> pathToImages) { foreach (var pathToImage in pathToImages) { aforgeVideo.add_Image(pathToImage); } return(aforgeVideo); }
public static API_AForge_Video add_Bitmap(this API_AForge_Video aforgeVideo, Bitmap bitmap) { aforgeVideo.add_Image(bitmap); return(aforgeVideo); }
public static API_AForge_Video add_Image(this API_AForge_Video aforgeVideo, string pathToImage) { aforgeVideo.add_Image(Misc_ExtensionMethods.bitmap(pathToImage)); // using the extension methods creates a weird conflic with the other bitmap<T>() where T : Control return(aforgeVideo); }