Beispiel #1
0
func (self *Matrix) Scale(sx, sy float64) {
	C.cairo_matrix_scale(self.cairo_matrix_t(), C.double(sx), C.double(sy))
}
Beispiel #2
0
//Scale scales m by vector and returns itself.
//
//Originally cairo_matrix_scale.
func (m Matrix) Scale(vector Point) Matrix {
	C.cairo_matrix_scale(&m.m, C.double(vector.X), C.double(vector.Y))
	return m
}