Overlaying graphics on images

17 views
Skip to first unread message

Josef Karthauser

unread,
May 15, 2011, 2:57:33 PM5/15/11
to gwt-gr...@googlegroups.com

Hi there.

Ive got a use case for gwt-graphics that doesn't appear to be supported in the current API, and I was wondering how much work it might be to add it.

Basically I want to overlay drawn graphics onto part of a pre-existing image. This needs the follow functionality:

* Shape elements can be composite onto an image element, in various colours and with various opacities (so that the image can seen through them). I think that this is possible today from my understanding of the docs.

* A region of an image needs to be specified as well as it's on-screen size. This doesn't appear to be possible today. However, SVG images support a 'viewbox' attribute so it should be relatively easy to manipulate that under get control. I'm not sure what support VML gives for this though. Is that going to cause a problem?

Anyone know off the top of their head whether these use cases are easily supportable without too much work?

Many thanks
Joe

Taoy

unread,
May 17, 2011, 5:53:05 AM5/17/11
to GWT Graphics
It looks like VML does support a cropping facility on images:

http://www.w3.org/TR/NOTE-VML#_Toc416858399

It's not pixel perfect, like for a svg viewbox, but it would do the
job.

Joe

Henri Kerola

unread,
May 18, 2011, 3:34:51 PM5/18/11
to gwt-gr...@googlegroups.com
Hi,

Like you said this should be doable because SVG and VML provides support for such a functionality.

-Henri
Reply all
Reply to author
Forward
0 new messages