Disable anti-alias

Let the developers know what you think of the software and what can be done to either improve the CFDG language or the Context Free program.

Moderators: chris, MtnViewMark, MtnViewJohn

Post Reply
bobular
Posts: 7
Joined: Mon Oct 12, 2009 4:09 am

Disable anti-alias

Post by bobular » Thu Oct 15, 2009 5:29 am

Hi,

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
cheers,
Bob.

bobular
Posts: 7
Joined: Mon Oct 12, 2009 4:09 am

found it!

Post by bobular » Thu Oct 15, 2009 6:54 am

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

change

Code: Select all

        typedef agg::renderer_scanline_aa_solid<renderer_base>  renderer_solid;
to

Code: Select all

        typedef agg::renderer_scanline_bin_solid<renderer_base>  renderer_solid;

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests