Ejemplo n.º 1
0
// Returns the ImageMagick quantum range as a string constant.
func GetQuantumRange() (string, uint) {
	cst := C.size_t(0)
	csq := C.MagickGetQuantumRange(&cst)
	return C.GoString(csq), uint(cst)
}
Ejemplo n.º 2
0
// Returns the ImageMagick quantum range as a string constant.
func GetQuantumRange() (string, uint) {
	cst := C.size_t(0)
	csq := C.MagickGetQuantumRange(&cst)
	defer C.free(unsafe.Pointer(csq))
	return C.GoString(csq), uint(cst)
}