示例#1
0
// Creates a horizontal mirror image by reflecting the pixels around the central y-axis.
func (cv Canvas) Flop() bool {
	status := C.MagickFlopImage(cv.wand)
	if status == C.MagickFalse {
		return false
	}
	return true
}
示例#2
0
文件: canvas.go 项目: jmrobles/canvas
// Creates a horizontal mirror image by reflecting the pixels around the central y-axis.
func (self Canvas) Flop() error {
	success := C.MagickFlopImage(self.wand)
	if success == C.MagickFalse {
		return fmt.Errorf("Could not flop image: %s", self.Error())
	}
	return nil
}