CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 1999
    Location
    Suffolk
    Posts
    30

    URGENT!!!! - getImage(URL) function

    The getImage(URL) function is a class member of java.applet.Applet. However, what I need is an equivalent function to load an image from the internet without having to descend the control which is displaying the image from java.applet.Applet - the control in question is descended from java.awt.Canvas at the moment.

    Please help!

    Dave Turner



  2. #2
    Join Date
    Sep 1999
    Location
    Sofia, Bulgaria
    Posts
    48

    Re: URGENT!!!! - getImage(URL) function

    man, write your own ImageLoader class, that uses the applet's function getImage!
    add a static method to your applet class, that returns reference to this class
    add method getImage to your ImageLoader class
    and you can load images from whereever you want without havin reference to the applet class

    I hope you can manage that!

    Leon
    http://people.bulgaria.com/vleonkev


  3. #3
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: URGENT!!!! - getImage(URL) function


    There is another version of getImage in toolkit.

    Try,

    getToolkit().getImage( url );

    I am not sure whether it will work or not. Just give a try.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured