digideskio / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

drawImage() sample fail http://code.google.com/p/google-web-toolkit-incubator/wiki/ImageLoader #311

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of gwt and gwt-incubator are you using?
1.7.
What OS and browser are you using?
Windows XP

Do you see this error in hosted mode, web mode, or both?
both

        public void onModuleLoad() {
        // Make a new canvas 400x400 pixels
        final GWTCanvas canvas = new GWTCanvas(400,400);

        String[] urls = new String[] {"image.png"};

        ImageLoader.loadImages(urls, new ImageLoader.CallBack() {

          public void onImagesLoaded(ImageElement[] imageElements) {
            ImageElement img = imageElements[0];
            canvas.drawImage(img, 0, 0);

        }

        });

        RootPanel.get().add(canvas);

    }

What is the expected output? What do you see instead?

onImagesLoaded() never executes.
No show the image.

Workaround if you have one:

Please provide any additional information below,  and thank you for taking
the time and effort to report this issue, as good issue reports are
critical for our quest to make GWT's new widgets and libraries shine.

Original issue reported on code.google.com by namberw...@gmail.com on 24 Sep 2009 at 7:04

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Please delete this issue. I was wrong.

Original comment by namberw...@gmail.com on 9 Oct 2009 at 8:56