예제 #1
0
// Sets the gravity type.
func (mw *MagickWand) SetGravity(gtype GravityType) error {
	C.MagickSetGravity(mw.mw, C.GravityType(gtype))
	return mw.GetLastError()
}
예제 #2
0
// Sets the text placement gravity to use when annotating with text.
func (dw *DrawingWand) SetGravity(gravity GravityType) {
	C.DrawSetGravity(dw.dw, C.GravityType(gravity))
}
예제 #3
0
파일: canvas.go 프로젝트: phacops/canvas
func (self *Canvas) SetGravity(gravity uint) {
	C.MagickSetGravity(self.wand, C.GravityType(gravity))
}
예제 #4
0
// Sets the gravity type.
func (mw *MagickWand) SetGravity(gtype GravityType) error {
	ok := C.MagickSetGravity(mw.mw, C.GravityType(gtype))
	return mw.getLastErrorIfFailed(ok)
}