Re: Is it possible to resize the viewport of the Image

2009-04-20 Thread Yifan

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
-~--~~~~--~~--~--~---



Is it possible to resize the viewport of the Image

2009-04-19 Thread Yifan

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
-~--~~~~--~~--~--~---