Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void LoadPhotoResources(string relativeUriString)
- {
- Uri uri = new Uri(relativeUriString, UriKind.Relative);
- StreamResourceInfo sri = Application.GetResourceStream(uri);
- BitmapImage bi = new BitmapImage();
- bi.SetSource(sri.Stream);
- WriteableBitmap wb = new WriteableBitmap(bi);
- imageElement.Source = target; //<image>
- wb = null;
- bi = null;
- sri = null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement