Example #1
0
// Sets the gravity type.
func (mw *MagickWand) SetGravity(gtype GravityType) error {
	C.MagickSetGravity(mw.mw, C.GravityType(gtype))
	return mw.GetLastError()
}
Example #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))
}
Example #3
0
func (self *Canvas) SetGravity(gravity uint) {
	C.MagickSetGravity(self.wand, C.GravityType(gravity))
}
Example #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)
}