// 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 }
// 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 }
// 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() }
// 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) }