コード例 #1
0
ファイル: magick_wand_prop.go プロジェクト: qwo/abelana-gcp
// 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
ファイル: magick_wand_prop.go プロジェクト: palaiyacw/imagick
// 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)
}