Ejemplo n.º 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
}
Ejemplo n.º 2
0
// 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
}