Guest User

Untitled

a guest
Jun 23rd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. System.Windows.Controls.Image img = new System.Windows.Controls.Image();
  2. string UriValue = HtmlPage.Document.DocumentUri.AbsoluteUri + imagefilename;
  3. img.SetValue(System.Windows.Controls.Image.SourceProperty,
  4. new System.Windows.Media.Imaging.BitmapImage(new Uri(UriValue)));
  5. double imagewidth = img.Width;
Add Comment
Please, Sign In to add comment