Hello to all... (and happy summer ^^)
Im working on a project using Batik and dealing with SVG !
One part of this project consists in a kind of color inversion of some elements in the displayed SVG.
In fact, only black(resp white) have to be converted in white(resp black).
The first solution is to look for each SVG elements in the displayed SVG. For each element we can set the color to white/black.
This solution is really slow ( more than a minute...) and this can't be acceptable.
-> Document state is ALWAYS_DYNAMIC if can help
Another idea was to add an overlay, and inverting color of each pixel if required, but the result is not convincing, probably because of antialising and rendering of the graphic, which introduces gray level pixel. These pixel are not inverted by our overlay... and each refresh takes aout 2seconds ( well.. depends on the screen resolution in fact ^^)
Do one of you have an idea on how to do this in optimisng performance(speed) and without grahics losts ?
ANy help would be appreciated
Votre vie privée l'est-elle vraiment ? Internet Explorer 8 vous protège gratuitement !