Exemple #1
0
func (self *Surface) Scale(sx, sy float64) {
	C.cairo_scale(self.context, C.double(sx), C.double(sy))
}
Exemple #2
0
// Scale is a wrapper around cairo_scale.
func (v *Context) Scale(sx, sy float64) {
	C.cairo_scale(v.native(), C.double(sx), C.double(sy))
}
Exemple #3
0
//Scale scales the current transformation matrix by v by scaling the user-space
//axes by v.X and v.Y.
//The scaling of the axes takes place after any existing transformation
//of user space.
//
//Originally cairo_scale.
func (c *Context) Scale(v Point) *Context {
	x, y := v.c()
	C.cairo_scale(c.c, x, y)
	return c
}
Exemple #4
0
func (c CairoContext) Scale(x, y float64) error {
	C.cairo_scale(c.nativePointer(), C.double(x), C.double(y))
	return c.status()
}
Exemple #5
0
// Scale s a wrapper around cairo_scale().
func (v *Context) Scale(x, y float64) {
	C.cairo_scale(v.native(), C.double(x), C.double(y))
}