Should have added if the user simply copies an image at the windows explorer level to the clipboard I simply hold the location of the file that was copied not the whole image, keep size of the collection down.
Jim On 15/07/2013, at 8:20 PM, Jim Baker <[email protected]> wrote: > Greg, > > Thanks for the reply :) > > Should have explained a little more detail ! This part of the application is > a clipboard storage mechanism. The capture is stored in an > ObservableCollection that is bound to a tree view. > The class has a generic object that holds the byte(). Subsequently the user > can select the previously "captured" item on the treeview and I then wish to > get the relevant byte() and > display it as an image control. > > Jim > > > On 15/07/2013, at 6:59 PM, Greg Keogh <[email protected]> wrote: > >> First post so be kind ! >> >> You're an idiot! ... Just kidding! Welcome to the loony bin. In a WPF app >> you can just go: >> >> if (Clipboard.ContainsImage()) { >> BitmapSource src = Clipboard.GeImage(); >> } >> >> Assign a control Image.Source = src (inside a ScrollViewer) and there you >> go. I forget if there is an easy or hard way to save in different formats. >> I'll have a think about saving and get back if I find something useful. >> >> Greg >
