Re: Animating images in GWT

2017-02-17 Thread Jonathan Cook
Ok Thanks. I think that is what Image.preload is doing inside. > > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com.

Re: Animating images in GWT

2017-02-15 Thread Thomas Broyer
To preload images: img = Document.get().createImageElement() img.setSrc(url) (you could then keep all those ImageElementâ‹…s in a list and use them directly instead of setHTML) You can use Image widgets too, which have load event handlers. On Wednesday, February 15, 2017 at 1:33:37 PM UTC+1, Jonat

Re: Animating images in GWT

2017-02-15 Thread Kirill Prazdnikov
Use can use requestAnimaionFrame, as we do. (https://studio.cospaces.io) It has exact and precise timing information in the argument -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Animating images in GWT

2017-02-15 Thread Jonathan Cook
I tried with a timer but the transition is a little slow the first time as the images download. Is there some way to cache or download them into memory before iterating them? // Create a new timer that iterates the images Timer t = new Timer() { int counter = 0;

Re: Animating images in GWT

2017-02-14 Thread Jonathan Cook
OK Thanks. Would that work as well if ultimately I will want to interrupt the timer to have buttons to pause the animation or sequence and continue? On Tuesday, 14 February 2017 16:31:22 UTC+1, Thomas Broyer wrote: > > > > On Tuesday, February 14, 2017 at 4:20:11 PM UTC+1, Jonathan Cook wrote: >>

Re: Animating images in GWT

2017-02-14 Thread Thomas Broyer
On Tuesday, February 14, 2017 at 4:20:11 PM UTC+1, Jonathan Cook wrote: > > Hello, > > I wanted to know the best way of taking a list of images which come from > an HTTP request, each image then needs to be retrieved. > > I would then like to use the images to make an animation behaviour so it

Animating images in GWT

2017-02-14 Thread Jonathan Cook
Hello, I wanted to know the best way of taking a list of images which come from an HTTP request, each image then needs to be retrieved. I would then like to use the images to make an animation behaviour so it looks like the list of images is for example is an animated gif. Moving between each