예제 #1
0
파일: surface.go 프로젝트: ungerik/go-cairo
func (self *Surface) Scale(sx, sy float64) {
	C.cairo_scale(self.context, C.double(sx), C.double(sy))
}
예제 #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))
}
예제 #3
0
파일: cairo.go 프로젝트: jimmyfrasche/cairo
//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
}
예제 #4
0
func (c CairoContext) Scale(x, y float64) error {
	C.cairo_scale(c.nativePointer(), C.double(x), C.double(y))
	return c.status()
}
예제 #5
0
파일: cairo.go 프로젝트: visionect/gotk3
// 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))
}