示例#1
0
文件: cairo.go 项目: raichu/gotk3
// PaintWithAlpha is a wrapper around cairo_paint_with_alpha().
func (v *Context) PaintWithAlpha(alpha float64) {
	C.cairo_paint_with_alpha(v.native(), C.double(alpha))
}
示例#2
0
func (self *Surface) PaintWithAlpha(alpha float64) {
	C.cairo_paint_with_alpha(self.context, C.double(alpha))
}
示例#3
0
//PaintAlpha paints the current source everywhere within the current clip
//region, using a mask of constant alpha value alpha.
//
//The effect is similar to Paint, but the drawing is faded out using
//the alpha value.
//
//originally cairo_paint.
func (c *Context) PaintAlpha(alpha float64) *Context {
	C.cairo_paint_with_alpha(c.c, C.double(alpha))
	return c
}