Unable to locate FromStream in Image class
问题 I have the following code: Image tmpimg = null; HttpWebRequest httpWebRequest = (HttpWebRequest)HttpWebRequest.Create(url); HttpWebResponse httpWebReponse = (HttpWebResponse)httpWebRequest.GetResponse(); Stream stream = httpWebReponse.GetResponseStream(); return Image.FromStream(stream); On the last line when I type in Image. , FromStream isn't in the list. What can I do? 回答1: You probably need using System.Drawing; . 回答2: More detailed out example with using and the namespaces needed. using