I just found this message in my Gmail outbox that didn't go a couple of
hours ago. It's out of sequence and was slightly off your topic, but here
it is just in case it's useful as a warning -- Greg

=============
Everything works, oh yeah! I just tried rendering different Clipboard
images in a WPF Image control and sometimes it shows the correct size but
it's blank. Web searching shows this:

If you’ve ever tried to use the Clipboard.GetImage method in WPF, you
probably had an unpleasant surprise… In fact, this method returns an
InteropBitmap which, in some cases (most cases actually), can’t be
displayed in an Image control : no exception is thrown, the image size is
correct, but the image either appears empty or unrecognizable.

The author then goes
on<http://www.thomaslevesque.com/2009/02/05/wpf-paste-an-image-from-the-clipboard/>to
show a morass of DIB manipulation code as a workaround, but I feel
sure
there is an easier way than that.

Reply via email to