On Sun, Mar 22, 2009 at 6:49 AM, Marcin Jakubowski <[email protected]>wrote:
> Hello,
>
> I'm thinking of a way to connect two points with a line but in a
> compatible way so using qx.ui.embed.Canvas is not an option because it's
> not supported in IE.
>
> Right now, my only idea is to have 180 images with a line representing
> 180 angles and using appropriate one based on calculations on the
> positions of those two points, then cropping the image so the distance
> matches.
>
> As you may imagine, having 180 images is going to be a major problem,
> not to mention calculations involving trigonometric functions which are
> expensive. So, can anyone think of a better solution? Is there a way for
> example to rotate the image? Or maybe some other idea comes to your mind?
Hi Marcin,
I have created the framework for a simple scalable vector graphics class.
Eventually I intend to have "engines" that generate the actual graphics in
the most efficient way given the requirements of the application. Engines
might include Canvas, SVG, etc. Currently there is one engine available
which does, in fact, allow cross-browser graphics. It implements straight
lines and ellipses by calculating the smallest number of divs necessary to
draw the specified line, and is amazingly fast given how it works.
This framework is available as the SimpleScalableVectorGraphics project in
qooxdoo-contrib. You can try out the demo program therein and confirm that
it'll do what you need. (Hmmm... The build system has changed and this no
longer builds. I'll need some help from the generator gurus to get this
working again, but once it does work, it'll likely nicely solve your current
issue.)
Derrell
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel