Hello!
Does anybody know how to read an Image located in clipboard to a file?
I use this code which seems to work well, but when I try to Show/open this file (e.g. in Paint or windows picture viewer) the file does not keep the image (keeps just white/blank area).
Dim clipImage As Image
Dim Out As OutputStream
If fx.Clipboard.HasImage Then
Out = File.OpenOutput(File.DirApp, "tmp.png", False)
clipImage = fx.Clipboard.GetImage
clipImage.WriteToStream(Out)
Out.Close
End IF
Does anybody know how to read an Image located in clipboard to a file?
I use this code which seems to work well, but when I try to Show/open this file (e.g. in Paint or windows picture viewer) the file does not keep the image (keeps just white/blank area).
Dim clipImage As Image
Dim Out As OutputStream
If fx.Clipboard.HasImage Then
Out = File.OpenOutput(File.DirApp, "tmp.png", False)
clipImage = fx.Clipboard.GetImage
clipImage.WriteToStream(Out)
Out.Close
End IF