예제 #1
0
파일: canvas.go 프로젝트: phacops/canvas
// Moves the current coordinate system origin to the specified coordinate.
func (self *Canvas) Translate(x float64, y float64) {
	C.DrawTranslate(self.drawing, C.double(x), C.double(y))
}
예제 #2
0
파일: canvas.go 프로젝트: mishudark/gosexy
// Moves the current coordinate system origin to the specified coordinate.
func (cv Canvas) Translate(x float64, y float64) {
	C.DrawTranslate(cv.drawing, C.double(x), C.double(y))
}
예제 #3
0
// Applies a translation to the current coordinate system which moves the
// coordinate system origin to the specified coordinate.
//
// x, y: new x, y ordinate for coordinate system origin
func (dw *DrawingWand) Translate(x, y float64) {
	C.DrawTranslate(dw.dw, C.double(x), C.double(y))
}