Example #1
0
func (self *Matrix) InitScale(sx, sy float64) {
	C.cairo_matrix_init_scale(self.cairo_matrix_t(), C.double(sx), C.double(sy))
}
Example #2
0
//NewScaleMatrix creates a matrix that scales by vector.
//
//Originally cairo_matrix_init_scale.
func NewScaleMatrix(vector Point) Matrix {
	var m C.cairo_matrix_t
	C.cairo_matrix_init_scale(&m, C.double(vector.X), C.double(vector.Y))
	return Matrix{m}
}