Example #1
0
File: magick.go Project: mat/magick
func init() {
	wd, err := os.Getwd()
	if err != nil {
		panic(err)
	}
	c_wd := C.CString(wd)
	C.MagickCoreGenesis(c_wd, C.MagickFalse)
	defer C.free(unsafe.Pointer(c_wd))
}
Example #2
0
func CoreInitialize(path string) {
	C.MagickCoreGenesis(C.CString(path), 0)
}
Example #3
0
func init() {
	C.MagickCoreGenesis(nil, magickBool(false))
}
Example #4
0
func CoreInitialize(path string) {
	cspath := C.CString(path)
	defer C.free(unsafe.Pointer(cspath))
	C.MagickCoreGenesis(cspath, 0)
}