예제 #1
0
파일: canvas.go 프로젝트: phacops/canvas
// Applies a scaling factor to the units of the current coordinate system.
func (self *Canvas) Scale(x float64, y float64) {
	C.DrawScale(self.drawing, C.double(x), C.double(y))
}
예제 #2
0
파일: canvas.go 프로젝트: mishudark/gosexy
// Applies a scaling factor to the units of the current coordinate system.
func (cv Canvas) Scale(x float64, y float64) {
	C.DrawScale(cv.drawing, C.double(x), C.double(y))
}
예제 #3
0
// Adjusts the scaling factor to apply in the horizontal and vertical
// directions to the current coordinate space.
//
// x: horizontal scale factor
//
// y: vertical scale factor
//
func (dw *DrawingWand) Scale(x, y float64) {
	C.DrawScale(dw.dw, C.double(x), C.double(y))
}