Hi Kamal,

Kamal Bhatt <[EMAIL PROTECTED]> wrote on 08/15/2006 12:36:38 AM:

> I don't know if this is the right mailing list, but here it goes.

   It's the right list.

> I would like to use batik through Cocoon to manipulate images, for 
> example, to bevel the corners of an image or cut the corners of the 
> image. For cutting corners of an image, it works well. However, when I 
> want to bevel the corners of an image, I get severe jaggies. 

   Is the bevel done with a filter effect?  Or when you say 'bevel' do
you just mean 'rounded corners'?  when you say 'severe' jaggies do
you really mean that the clip isn't anti-aliased (so the jaggies are
single pixel jaggies).

   If it is just the latter you can turn on anti-aliased clipping.
This can be done by adding: shape-rendering="geometricPrecision"
for the clipPath element.

> Now, I understand that Batik/SVG may not be made for this sort of thing, 

> but I was hoping there was some mechanism for doing this that won't eat 
> up all my processing power.
> 
> Here is a generated version of the code.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <svg:svg xmlns:svg="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.
> org/1999/xlink" width="235" height="160" viewbox="0 0 235 160">
>   <svg:clipPath id="myClip">
>     <svg:path d="M 20 0,h195c 20 1, 20 1 20 20l 0 120,c 1 20, 1 20, -20 
20,l 
> -195 0,c -20 1, -20 1 -20 -20,l 0 -120c 1 -20, 1 -20, 20 -20,z"/>
>   </svg:clipPath>
>   <svg:g style="stroke:none;clip-path:url(#myClip)">
>     <svg:image y="0" x="0" width="235" height="160" xlink:href="file:
> 
///data/content/tsg/cmsblocks/holidayImg/images/Malaysia/penang_sunset.jpg"/>
>   </svg:g>
> </svg:svg>
> 
> 
> Thanks.
> 
> -- 
> Kamal Bhatt
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to