GWT and Canvas

2012-03-29 Thread LincMii
Does anyone know if there is an image size limit to drawing an image on a 
canvas?

-- 
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/-/YfIvlK47olQJ.
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.



Re: Background image

2012-03-29 Thread LincMii
This did not work for me ... I am trying to apply this style to a canvas 
but for some reason the image just won't show.

On Monday, October 20, 2008 11:47:32 AM UTC-10, Bryan wrote:
>
> hey there, 
>
> You can just add a css style to any panel.  For instance, i used 
> firebug to change the style on the box above so that there is a 
> repeating background image of the google logo.  The style looks like 
> this.  Screenshot 
> http://drop.io/pytdu4r/asset/​background-repeat
>  
>
> .cb { 
>background-image:url(http://​www.google.com/intl/en_ALL/​images/ 
> logo.gif ); 
> } 
>
> In the gwt code, you would have something like this: 
> SimplePanel container; 
> container.setStyle("cb") 
>
> later, 
> bryan 
>
> On Oct 20, 7:56 am, "S. Oomes"  wrote: 
> > Hello everyone, 
> > 
> > I ám currently checking out GWT and im really impressed. The only 
> > thing i ren into was the fact that i did'nt get a background image in 
> > the application i was making. I want to use instead of the white 
> > background a image i made. It must repeat in the complete page as 
> > background. Is this possible to do and how do i do that. 
> > 
> > I dont have any experience at all with java but im going to learn that 
> > in my 4 semester (don't now the correct name) on my school. So if some 
> > one knows the awnser please explain exact where i need to place the 
> > code or code's. When you, the responder to this artikle, are dutch you 
> > can  mail me the dutch explanation in dutch. Or post it here when this 
> > is allowed of course! 
> > 
> > I'm looking forward to hear from you, 
> > 
> > Greetings S. Oomes

-- 
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/-/CXTU6e3loB0J.
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.



Canvas Background Image

2012-03-29 Thread LincMii
Hello Everyone,

I am new to the GWT but I decided to get integrated by messing around with 
the canvas! I was trying to implement some animation and a background by 
using the ClientBundle and the HTML5 canvas. The CB is to access my images, 
and then there are three canvas; one for the background, one for moving 
"creatures", and one for user animations (moving a shark with keyboard 
keys). 

So far, everything has been simple, with the exception of one thing. My 
background image will not show! Here is an example: 
http://2.its381b-helloweb-lmii.appspot.com/

And here is a link to the code: 
http://code.google.com/p/sealsurvival/source/browse/trunk/SealSurvival/src/com/hawaii/blt/sealsurvival/client/SealSurvival.java

I am not asking for anyone to "solve" this problem for me, but if anyone 
knows of a glitch w/ the canvas or any special properties that I may have 
missed in using the drawImage() function, I would greatly appreciate the 
tip.

Thanks,

LincMii



-- 
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/-/a4XS7ur6cGQJ.
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.