Re: Is it possible to convert ImageResource to ImageElement?
Thank you for your quick response. At first I thougth it was going to
work, but the Image does not appear on the canvas. I tried this (as
you said):
Image map = new Image(mapResources.map());
contextMap.drawImage(ImageElement.as(map.getElement()), x, y);
On Feb 6, 2:47 am, Jeff Larsen <larse...@gmail.com> wrote:
> Have you tried
>
> Image img = new Image(ClientBundle.getImageResource());
> ImageElement.as(img.getElement());
>
> Haven't tested this, but it is worth a try.
--
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.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home