> JB> Filter can be generated as kernel for transformation matrix that will apply > JB> to the rendering sheme ;-) > > I'm not sure if you understand what a filter is in SVG. There is > a set of ~13 predefined filter effects in the SVG specification > (Chapter 15). These range from the rather straight forward, lookup > table, color matrix, and convolution operations, to 3D lighting > effects, noise generators and morphology operations. Clearly these > filters (or references to them) could also be packaged up in the SVG > description but the result will be much larger than a paint method > with a bunch of fill/stroke calls. >
About the *simple* filter we may use the direct kernel of the Java2D API. About the *advanced* filters (noise, 3d effects ....), the translator could simply translate its function into a method that will be use by the main paint routine ;-) Just think to the fact that we are at dev time and have a complete access to the XML tree ... all we need is generate what it will look like according to the spec ! > I'll also point out things like gradient fills (linear and > radial), pattern fills (doing this efficiently requires significant > support). <.....> Please don't miss my statement, all i've just said that instead of providing classes & package to do the job, we could instead generate the same code INSIDE a single classes so only the needed code will be deploy ;-) AFAIK, it has been done with Batik, so it's feasable with Java2D ... the only question is how complex it will be (regards parameters and variable creations contexts) to generate such a file with all the integrated code. About the problem of translating XScript to plain Java, a good start may be to first exclude any � la XPath access and only support direct *by ID* reference and access. I still think that such a translator will bring cool features for the good of both SVG and Java. The only limit of this technique is the 64k java limit :( Thanks to all of your feedbacks ... -JB'. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
