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