I have tried to do this rasterization, but I cant get the code/parameters right. How do I easily make this rasterization at a lower resolution ? Since I am really stuck, code samples would be gratefully accepted. For now, my code just looks like :
For the resolution you need to add something like
// destination image dimensions if (paramDW > 0) { transcoder.addTranscodingHint( SVGAbstractTranscoder.KEY_WIDTH, new Float(paramDW)); } if (paramDH > 0) { transcoder.addTranscodingHint( SVGAbstractTranscoder.KEY_HEIGHT, new Float(paramDH)); }
The TIFF encoder doesn't seem to have the KEY_INDEXED number of colors that the PNG trancoder has to specifiy the number of color in the resulting index color model.
So you would have to experiment with your TIFFs, or try PNG.
Cheers Robert
P.S. the javadoc of TIFFTranscoder or PNGTranscoder is your friend.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]