Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off antialiasing? #123

Open
logiterra opened this issue Dec 4, 2016 · 3 comments
Open

Turn off antialiasing? #123

logiterra opened this issue Dec 4, 2016 · 3 comments

Comments

@logiterra
Copy link

logiterra commented Dec 4, 2016

I can see in the code what I need to modify but a simpler approach would be handy. By "embedding" values such as polygon ids into the RGBA values one can paint data onto the raster map. With antialiasing the edges get erroneous values. This addition would be handy for GIS work / visualisation.

@logiterra logiterra changed the title Turn off anitialiasing? Turn off antialiasing? Dec 4, 2016
@llgcode
Copy link
Owner

llgcode commented Dec 5, 2016

Hi @logiterra,
in existing implementations, drawpdf, drawimg. There's no way to remove antialiasing option. It could be implemented in drawimg but I'm not sure it works well with text.

@logiterra
Copy link
Author

Thanks for your reply. Turning off antialiasing does seem to fall outside the scope of the project.

We are painting 10's thousands of polygon indices onto a raster map used in the background as a lookup table. When a theme is changed we don't have to redraw the polygons we just scan the background raster map pixel by pixel to get the polygon index to lookup colour for a new raster map pixel by pixel. Much faster than redrawing and dithering can be can be done based on polygon attributes. We are currently using Java but are looking for a Go solution.

Thanks for your time.

@llgcode
Copy link
Owner

llgcode commented Dec 6, 2016

@logiterra
I've experimented a rasteriser without antialiasing last year, feel free to fork it :)
https://github.com/llgcode/go-exp-raster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants