示例#1
0
文件: cairo.go 项目: raichu/gotk3
// 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))
}
示例#2
0
func (self *Surface) SetAntialias(antialias Antialias) {
	C.cairo_set_antialias(self.context, C.cairo_antialias_t(antialias))
}
示例#3
0
//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
}