Re: Is it possible to resize the viewport of the Image
Yeah, I figured that browsers don't let you scale what's in a viewport. On Mon, Apr 20, 2009 at 9:02 AM, Yifan wrote: > > Thanks, I have tried that out. But it does not work. > When I called the setVisibleRect() function, it will show a viewport > of the original image, not a resized one. > > On Apr 20, 4:01 am, Vitali Lovich wrote: > > image.setPixelSize(2*c, 2*d + "px"). I'm not sure how if that does or > does > > not interfere with visible rect - you'll have to test that out. > > > > On Sun, Apr 19, 2009 at 6:56 PM, Yifan wrote: > > > > > If I have the following code: > > > > > image = new Image(url); > > > image.setVisibleRect( a, b, c, d); > > > > > is it possible that I can resize the area to 2c X 2d which will > > > enlarge the picture in the viewport? > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is it possible to resize the viewport of the Image
Thanks, I have tried that out. But it does not work. When I called the setVisibleRect() function, it will show a viewport of the original image, not a resized one. On Apr 20, 4:01 am, Vitali Lovich wrote: > image.setPixelSize(2*c, 2*d + "px"). I'm not sure how if that does or does > not interfere with visible rect - you'll have to test that out. > > On Sun, Apr 19, 2009 at 6:56 PM, Yifan wrote: > > > If I have the following code: > > > image = new Image(url); > > image.setVisibleRect( a, b, c, d); > > > is it possible that I can resize the area to 2c X 2d which will > > enlarge the picture in the viewport? --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is it possible to resize the viewport of the Image
image.setPixelSize(2*c, 2*d + "px"). I'm not sure how if that does or does not interfere with visible rect - you'll have to test that out. On Sun, Apr 19, 2009 at 6:56 PM, Yifan wrote: > > If I have the following code: > > image = new Image(url); > image.setVisibleRect( a, b, c, d); > > is it possible that I can resize the area to 2c X 2d which will > enlarge the picture in the viewport? > > > > --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Is it possible to resize the viewport of the Image
If I have the following code: image = new Image(url); image.setVisibleRect( a, b, c, d); is it possible that I can resize the area to 2c X 2d which will enlarge the picture in the viewport? --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---