Example #1
0
// Creates a vertical mirror image by reflecting the pixels around the central x-axis.
func (cv Canvas) Flip() bool {
	status := C.MagickFlipImage(cv.wand)
	if status == C.MagickFalse {
		return false
	}
	return true
}
Example #2
0
// Creates a vertical mirror image by reflecting the pixels around the central x-axis.
func (self Canvas) Flip() error {
	success := C.MagickFlipImage(self.wand)
	if success == C.MagickFalse {
		return fmt.Errorf("Could not flop image: %s", self.Error())
	}
	return nil
}