in imagebrush class i want to put an image by giving its url, i cant find a function that takes the url of the image. neither in imagesource Class
can any 1 help me

because i want to put an image programmicly in inkCanvas which takes argument brush or imagebrush but i cant find the way put put the url of the image

i dont want xaml code
i want C# code
thank you

You can get image from some url via stream like this :

System.Drawing.Image g;
System.Net.WebRequest webRequest = System.Net.WebRequest.Create(url);
System.Net.WebResponse response = webRequest.GetResponse();
System.IO.Stream imageStream = response.GetResponseStream();
g = System.Drawing.Image.FromStream(imageStream);