I am trying to figure out how to receive images that are dropped from
a web browser (IE or Firefox). For instance, after performing an
image search on Google, I have several thumbnails displayed in the web
browser. I would simply like to be able to drag and drop one of the
thumbnails onto my application and receive the image or a URL for the
image.
I have implemented several drag and drop applications in the past and
so I know the basics. However, in this case, all I get is the URL.
Originally I thought this was all I could get but after experimenting
with the Mac OS (Objective-C) we found that the Mac handles this kind
of operation via the clipboard. When an image is dragged to the
application, the clipboard contains text and image data from the
event. We are able to extract the image data and create a bitmap.
Anyone know how to do something similar in .NET/CSharp? Note, that if
the URL associated with an image is explicit, e.g.
http://tech2.in.com/media/images/200...1121_spore.jpg
obtaining the image is no problem. It's when the URL looks like this,
http://tbn0.google.com/images?q=tbn:...1121_spore.jpg
or like this,
http://images.google.com/imgres?imgu...icial%26sa%3DN
when it's more difficult to locate and grab the image.
Thanks.