Esempio n. 1
0
func (self *Surface) DeviceToUser(x, y float64) (float64, float64) {
	C.cairo_device_to_user(self.context, (*C.double)(&x), (*C.double)(&y))
	return x, y
}
Esempio n. 2
0
//DeviceToUser takes the point p from device space to the point q in user space
//by multiplication with the inverse of the current transformation matrix.
//
//Originally cairo_device_to_user.
func (c *Context) DeviceToUser(p Point) (q Point) {
	x, y := p.c()
	C.cairo_device_to_user(c.c, &x, &y)
	return cPt(x, y)
}