开发者

How to resize GWT image generated from servlet?


I have a se开发者_运维知识库rvlet that generates PNG using data in database...then in my GWT Application i use the servlet URL to get the image, all of this work perfectly, but the problem is i can't modify the size of image to fit the box reserved to it since the image is generated from servlet.Is there a method to modify dimensions when generating image? or may be client side solution to setup image's size? Any ideas how I'd do this? Thanks in advance,


I am assuming you are loading it in a gwt Image widget. If so, just use the widget functions of setWidth( "10px") and setHeight( "10px") on the client side.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜