예제 #1
0
파일: canvas.go 프로젝트: mishudark/gosexy
// 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
}
예제 #2
0
파일: canvas.go 프로젝트: jmrobles/canvas
// 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
}