Page 1 of 1

Disable anti-alias

Posted: Thu Oct 15, 2009 5:29 am
by bobular

I have been looking at the source code and antigrain docs for a way to disable the anti-aliasing and can't find an obvious solution.

Is it possible? It would be a really nice commandline option if it was.

I'm not sure how many people would use it though! I have quite obscure reasons to want to.

Alternatively I could output SVG, and use imagemagick to render an ugly aliased image with

Code: Select all

convert +antialias temp.svg temp.png

found it!

Posted: Thu Oct 15, 2009 6:54 am
by bobular
imagemagick SVG conversion (probably delegated to some other program) was buggy so I looked harder and found what I needed to change:

aggCanvas.cpp line 170


Code: Select all

        typedef agg::renderer_scanline_aa_solid<renderer_base>  renderer_solid;

Code: Select all

        typedef agg::renderer_scanline_bin_solid<renderer_base>  renderer_solid;