Example #1
0
// Gets the image X and Y resolution.
func (mw *MagickWand) GetResolution() (x, y float64, err error) {
	C.MagickGetResolution(mw.mw, (*C.double)(&x), (*C.double)(&y))
	err = mw.GetLastError()
	return
}
Example #2
0
// Gets the image X and Y resolution.
func (mw *MagickWand) GetResolution() (x, y float64, err error) {
	ok := C.MagickGetResolution(mw.mw, (*C.double)(&x), (*C.double)(&y))
	err = mw.getLastErrorIfFailed(ok)
	return
}