// SetAntialias is a wrapper around cairo_set_antialias(). func (v *Context) SetAntialias(antialias Antialias) { C.cairo_set_antialias(v.native(), C.cairo_antialias_t(antialias)) }
func (self *Surface) SetAntialias(antialias Antialias) { C.cairo_set_antialias(self.context, C.cairo_antialias_t(antialias)) }
//SetAntialiasMode sets the antialiasing mode of the rasterizer used //for drawing shapes. //This value is a hint, and a particular backend may or may not support //a particular value. // //At the current time, no backend supports AntialiasSubpixel when drawing shapes. // //SetAntialiasMode does not affect text rendering, instead use //FontOptions.SetAntialiasMode. // //Originally cairo_set_antialias. func (c *Context) SetAntialiasMode(a antialias) *Context { C.cairo_set_antialias(c.c, a.c()) return c }