Example #1
0
// Destroys the current drawing surface and returns the latest surface that was pushed to the stack.
func (cv Canvas) PopDrawing() bool {
	status := C.PopDrawingWand(cv.drawing)
	if status == C.MagickFalse {
		return false
	}
	return true
}
Example #2
0
// Destroys the current drawing surface and returns the latest surface that was pushed to the stack.
func (self *Canvas) PopDrawing() error {
	success := C.PopDrawingWand(self.drawing)

	if success == C.MagickFalse {
		return fmt.Errorf("Could not pop surface: %s", self.Error())
	}

	return nil
}
Example #3
0
// Destroys the current drawing wand and returns to the previously pushed
// drawing wand. Multiple drawing wands may exist. It is an error to attempt
// to pop more drawing wands than have been pushed, and it is proper form to
// pop all drawing wands which have been pushed.
func (dw *DrawingWand) PopDrawingWand() error {
	C.PopDrawingWand(dw.dw)
	return dw.GetLastError()
}
Example #4
0
// Destroys the current drawing wand and returns to the previously pushed
// drawing wand. Multiple drawing wands may exist. It is an error to attempt
// to pop more drawing wands than have been pushed, and it is proper form to
// pop all drawing wands which have been pushed.
func (dw *DrawingWand) PopDrawingWand() error {
	ok := C.PopDrawingWand(dw.dw)
	return dw.getLastErrorIfFailed(ok)
}