Exemple #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
}
Exemple #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
}