On Thursday, September 20, 2012 3:54:41 AM UTC+2, Tim wrote:
>
> Perhaps you want set some ImageOptions on the resource.  Check 
> "preventInlining" and "RepeatStyle" 
>
>
Thanks, according to the javadoc, ImageOptions.preventInlining actually 
seems to disable all kinds of optimizations:

Set to {@code true} to require the ImageResource to be downloaded as a  

separate resource at runtime. Specifically, this will disable the use of 

{@code data:} URLs *or other bundling optimizations* for the image. 


I assume, this also includes spriting (?). A quick look at 
com.google.gwt.resources.rg.ImageResourceGenerator seems to confirm this 
for the current implementation.

It's a bit counter-intuitive, because the option is just called 
"preventInlining", so to be on the safe side, I'll probably use a 
DataResource instead (I might miss ImageResource's getWidth()/getHeight() 
methods though).

And about RepeatStyle.Both: Here, the javadoc says:

 The image is intended to be tiled both horizontally and vertically. Note
>
> that this will prevent compositing of the particular image *in most cases*
> .
>
>  

>  

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

Reply via email to