Hi,
> I am using the rasterizer from a C Programm to convert a svg into a png. 
> The Problem that I encountered is that the raserizer only renders the 
> image up to 400 pixel an then just stop. so the image is just about 2/3 
> of the size it should be and the rest is just cut off.
> The other problem I had was, that the background of the svg just 
> rendered black. This is somehow odd, because irfanview displays the 
> background black, libpng does so too, windows displays it white...
> If I export the same svg to png from squiggle everything just works fine 
> as it should!

For the size problem make sure you set the SVG height & weight attribute
or you can use the transcoder key
- SVGAbstractTranscoder.KEY_WIDTH
- SVGAbstractTranscoder.KEY_HEIGHT
- SVGAbstractTranscoder.KEY_MAX_WIDTH
- SVGAbstractTranscoder.KEY_MAX_HEIGHT

For the black background, because some image viewer doesn't display
transparent png correctly, you can work around the problem by using
transcoder key
- ImageTranscoder.KEY_FORCE_TRANSPARENT_WHITE
Note, force transparent white will display differently when viewed using
Image viewer that can display transparent PNG correctly

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to