Monday, September 3, 2012

Re: ImageResource loading

Hi,

After further researches it seems not possible to load image loading without showing it on a visible Panel.
Also i have not found how the read pixels from the ImageResource of the ClienBundle.

The main issue is that i have to read images at any time, but as the RootLayoutPanel has its central widget already defined, the super dev mode throws a security error...

Any idea ?

Thanks for your attention,

Regards,
Harold


2012/8/31 Harold Comere <harold.comere@gmail.com>
Hi all,

I have a ClientBundle containing one ImageResource.
Then i create an Image from this ImageResource :

Image img = new Image(myImageResource);

I set on the image a LoadHandler and ErrorHandler to manage loading events.
To launch the image loading, i have to attach the image to the RootLayoutPanel.

Is there a way to force the image loading without attaching it to RootLayoutPanel ?

Regards,
Harold



--
Small WebGL 3D engine for GWT
http://code.google.com/p/ethereal-engine/

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment