The results :) The first image is the main screen of the application I am building for myself & some family & friends. Although written in VS2010 for a Windows 7 environment I have tried to create a flat metro look. Port to Windows 8 later !
The section I'm working on at the moment is the clipboard history section. http://www.realtime-systems.com/du/CapMain.png The second image shows the results of the image just being copied from Windows Explorer so the whole image is showing. http://www.realtime-systems.com/du/CapImage1.png The third image shows the results when I selected a portion of the image in Paint and copied that to the clipboard. http://www.realtime-systems.com/du/CapImage2.png Coming on this section will be the ability to inject a selected item back onto the clipboard for resuse, and the functionality to save an entry. One interesting fact is that all of the main selections I am writing are written as controls so the main xaml file is quite small and I can test each control easily. Many thanks again Jim On 16/07/2013, at 1:30 PM, Jim Baker <[email protected]> wrote: > Greg, > > Thanks. That link pointed me to some code that I have modified slightly for > my case and it is working. That said I have broken something else in the > process ! > Will put some screenshots up as soon as I fix the last bug. > > Hope I can assist somebody someday. > > Jim > On 15/07/2013, at 10:05 PM, Greg Keogh <[email protected]> wrote: > >> 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 to show a morass of DIB manipulation code as a >> workaround, but I feel sure there is an easier way than that. >
