On Friday 08 June 2001 15:06, Peter Becker wrote:

Sorry for the delay.

> to render banners for websites: grey text, white border on orange
> ground. The result looks nice in WebDraw but using Batik 1.0 the filter
> effect is cut on the edges -- the bounding box for the filter is to
> small. Changing the [x], [y], [width] and [height] attributes doesn't
> seem to help.

Are you trying to apply the filter on the text or on another graphical 
element?

> This one:
>      <filter id="Border" filterUnits="userSpaceOnUse" x="-10" y="-10"
> width="600" height="70">
> is better, but not ok. Even using really big numbers on the attributes
> doesn't help.

If you are using 'userSpaceOnUse', it means that the value for the x,y,width, 
and height attribute are in the coordinate system of your document (to 
simply). So be sure to define a region that includes the element on which you 
want to apply the filter (eg. -10,-10 seems wrong to me)

Otherwise, we still have some work to do regarding how we manage the filter 
region but basically, what you are trying to do should work properly in batik.

For futher details, you can have a look at the filterRegions.svg file.

> Any solution/workaround/patch for this?

Please let me know if it was just something wrong in your coordinate system. 
Otherwise, could you send us an svg file that illustrates the problem.

> BTW: is there a way to specify the background color directly? I tried to
> find this in some documentations (including the W3C spec) but failed
> somehow (maybe it is just too late).

You can do that using the image transcoder (A transcoding hint lets you 
specify the background color) or with the canvas (using the setBackground 
method).

Hope that helps,
Thierry.


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

Reply via email to