Load image into picture box from URL?

  • Thread starter Thread starter Tomppa
  • Start date Start date
T

Tomppa

Using CE 5.0, CF 2.0, C#

How do I do the equevelant in the CF?

Stream ImageStream = new WebClient().OpenRead(URL);
System.Drawing.Image img = System.Drawing.Image.FromStream(ImageStream);

picCover.Width = img.Width;

picCover.Height = img.Height;

picCover.Image = img;

Thanks
 
http://groups.google.com/group/micr...=image+url+picturebox&rnum=8#f9fb444665eaf955

Image.FromStream(stream) is replaced by new Bitmap(stream)

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
Back
Top