I am using Aforge.net samples and i wanted to get name of the images which are placed on resources. I am unable to do so as image.tag is givng an error.
Please help
I am using Aforge.net samples and i wanted to get name of the images which are placed on resources. I am unable to do so as image.tag is givng an error.
Please help
You can using the Uri Class to load the path and pull the Image name from Segments collection:
Uri uri = new Uri("http://www.XXXX.com/imageName.jpg");
string fileName = uri.Segments.Last();
Edit
Let see this answers: if you like it ?
C# how to get a bitmap from a picturebox
New Edit
System.IO.FileInfo info = new System.IO.FileInfo(Properties.Resources.Stop);
string fileName = info.Name;