Ejemplo n.º 1
0
// Clones the current drawing surface and stores it in a stack.
func (cv Canvas) PushDrawing() bool {
	status := C.PushDrawingWand(cv.drawing)
	if status == C.MagickFalse {
		return false
	}
	return true
}
Ejemplo n.º 2
0
// Clones the current drawing surface and stores it in a stack.
func (self *Canvas) PushDrawing() error {
	success := C.PushDrawingWand(self.drawing)

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

	return nil
}
Ejemplo n.º 3
0
// Clones the current drawing wand to create a new drawing wand. The original
// drawing wand(s) may be returned to by invoking PopDrawingWand(). The drawing
// wands are stored on a drawing wand stack. For every Pop there must have
// already been an equivalent Push.
func (dw *DrawingWand) PushDrawingWand() error {
	C.PushDrawingWand(dw.dw)
	return dw.GetLastError()
}
Ejemplo n.º 4
0
// Clones the current drawing wand to create a new drawing wand. The original
// drawing wand(s) may be returned to by invoking PopDrawingWand(). The drawing
// wands are stored on a drawing wand stack. For every Pop there must have
// already been an equivalent Push.
func (dw *DrawingWand) PushDrawingWand() error {
	ok := C.PushDrawingWand(dw.dw)
	return dw.getLastErrorIfFailed(ok)
}