Example #1
0
// Returns the ImageMagick API version as a string constant and as a number.
func GetVersion() (version string, nversion uint) {
	cnver := C.size_t(0)
	csver := C.MagickGetVersion(&cnver)
	version = C.GoString(csver)
	nversion = uint(cnver)
	return
}
Example #2
0
// Returns the ImageMagick API version as a string constant and as a number.
func GetVersion() (version string, nversion uint) {
	cnver := C.size_t(0)
	csver := C.MagickGetVersion(&cnver)
	defer C.free(unsafe.Pointer(csver))
	version = C.GoString(csver)
	nversion = uint(cnver)
	return
}
// Returns true if the wand is a verified magick wand
func (mw *MagickWand) IsVerified() bool {
	if mw.mw != nil {
		var version C.ulong
		C.MagickGetVersion(&version)

		return uint(version) > 0
		//return 1 == C.int(C.IsMagickWand(mw.mw))
	}
	return false
}