fogleman / gg

Go Graphics - 2D rendering in Go with a simple API.
https://godoc.org/github.com/fogleman/gg
MIT License
4.37k stars 354 forks source link

add method to change drawing interpolator #131

Open geo-stark opened 3 years ago

geo-stark commented 3 years ago

default interpolator used for drawing text and images is draw.BiLinear and it's rather slow against e.g. draw.NearestNeighbor The difference is significant especially on weak hardware e.g. on raspberry pi zero (ARMv6) drawing short string can be 10-16 times faster with draw.NearestNeighbor

Signed-off-by: George Stark stark.georgy@gmail.com

sbinet commented 1 year ago

FYI, I've added something along these lines on "my" fork of gg: