The user right clicks on a file(say on the desktop) and clicks \'copy\' . Now how do I determine in C# if the file copied to the clipboard is an image type ?
Clipbo
Get the filename(s) from the clipboard(copying a file to the clip-board just copies its name). Then check if file(s) are image(s).
There are two ways to do that:
I prefer the second one because it works even if a file has the wrong extension. On slow media it might be slower though since you need to access the file instead of just working the filename which you got from the clipboard.