Thierry Kormann wrote:
> On Tuesday 29 May 2001 09:58, Peter Becker wrote:
>
>> Hello,
>>
>> when rasterizing images I always get a white border (1 pixel) at the top
>> and left edges of the image. Simple example: run this:
>
>
> The viewer seems to have the same problem. I was not able to identify the
> problem yet but I am going to work on it ASAP. Feel free to enter a bug in
> Bugzilla.
I just fixed this problem for myself by changing lines 422/423 in
org.apache.batik.gvt.renderer.StaticRenderer. There are two values
rounded up (by adding 0.5f), I changed this to round down (by
subtracting 0.5f). Works for me but of course I might have broken other
code ;-) At least it seems to be close to the real problem but I must
admit that I don't really understand what the hacker in me did there.
>> <svg viewport="1,1,150,30" width="150" height="30">
>> <rect x="-10" y="-10" width="150" height="30"
>> style="fill:rgb(80,80,0)"/> </svg>
>
>
> BTW: the attribute viewport does not exist. The attribute is called viewBox
> (with an uppercase 'B').
Oops :-) Thanks for the hint.
>> through the batik-rasterizer.jar on Windows (Sun JDK 1.3). I played with
>> the viewport and rectangle positions but the effect stays the same. BTW:
>> The rasterizer can't find an output directory if the file name is in the
>> same directory (unless you put a ".\" in front).
>
>
> OK, this one also need a bug report.
>
>> Is this a bug (I couldn't find it in Bugzilla) or do I miss something here?
>
>
> Yep. Two more...
Can you file them? I am not sure how to classify the first one and I am
too lazy to get just another account on some webbased system somewhere ;-)
Thanks,
PeterB
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]