xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Tošovský <j.tosov...@tiscali.cz>
Subject RE: Rendering precision
Date Fri, 05 Feb 2010 21:20:11 GMT
Hi Johan,

> I had the same problem and couldn't find any quality 
> settings. I did find  
> a protected method of transcoders: createRenderer(), which 
> returns an  
> ImageRenderer. You can set Java2D rendering hints on this class. By  
> creating a simple subclass you can tell the ImageRenderer to use the  
> highest possible quality:
> 
> PNGTranscoder t = new PNGTranscoder()
> {
>      @Override
>      protected ImageRenderer createRenderer()
>      {
>          ImageRenderer r = super.createRenderer();
> 
>          RenderingHints rh = r.getRenderingHints();
> 
>          rh.add(new RenderingHints(...);
...
...
>          r.setRenderingHints(rh);
> 
>          return r;
>      }
> };

thanks for this quick and valuable response! Now circles are realy circles
;-) 
I raise my hat to you.

Regards,
Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message