Пример #1
0
// Sets the image resolution.
func (mw *MagickWand) SetResolution(xRes, yRes float64) error {
	C.MagickSetResolution(mw.mw, C.double(xRes), C.double(yRes))
	return mw.GetLastError()
}
Пример #2
0
// Sets the image resolution.
func (mw *MagickWand) SetResolution(xRes, yRes float64) error {
	ok := C.MagickSetResolution(mw.mw, C.double(xRes), C.double(yRes))
	return mw.getLastErrorIfFailed(ok)
}