I need to recover an imagen that y paste from Photoshop for asign it to a PictureBox.Image.
The problem that I have is that the function Clipboard.GetDataObject().GetFormats() returns that the clipboard's data is in DataFormats.MetafilePict format and only in this format, don't support any conversion.
I tried to recover the image with this code:
if ( Clipboard.GetDataObject().GetDataPresent(DataFormats.MetafilePict ) )
object o= Clipboard.GetDataObject().GetData(DataFormats.MetafilePict);
the condition is evaluated to true but the object o is assigned to null.
Anybody can help me.
Sorry for my english.