locked
Get Image from URL on pocketpc 2003? RRS feed

  • Question

  • Hi all,

    I am developing windows mobile client on the pocketpc 2003 platform. I meet a problem of getting images from URL by C#, since in the pocketpc sdk, there is no function to create a image like this: Image img = Image.fromStream(..). As far as I know, we can get the image stream from web and transform to an image. But on pocketpc platfrom, we cannot do this anymore.... Can any1 give some ideas? Thanks!!!!


    Update/.... I know a bit too soon..
    Checked this url, done. http://bytes.com/topic/c-sharp/answers/471313-displaying-image-url-c
    Thursday, March 4, 2010 10:38 AM

Answers

  • Hi Anklos,

    Although FromStream method is not support in CF, we still can use Bitmap class to receive an stream and generate a bitmap object:

    Bitmap res = new Bitmap(Stream);  
    Image img=(Image)res;

    For more information:
    http://msdn.microsoft.com/en-us/library/z7ha67kw.aspx


    Best regards,
    Guang-Ming Bian - MSFT
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Monday, March 8, 2010 7:03 AM