예제 #1
0
/* Sets the image compression. */
func (w *MagickWand) SetImageCompression(compression int) error {
	if C.MagickSetImageCompression(w.wand, C.CompressionType(compression)) == C.MagickFalse {
		eStr, eCode := w.Exception()
		return fmt.Errorf("SetImageCompression() failed : [%d] %s", eStr, eCode)
	}

	return nil
}
예제 #2
0
// Sets the wand compression type.
func (mw *MagickWand) SetCompression(compression CompressionType) error {
	C.MagickSetCompression(mw.mw, C.CompressionType(compression))
	return mw.GetLastError()
}
예제 #3
0
// Sets the wand compression type.
func (mw *MagickWand) SetCompression(compression CompressionType) error {
	ok := C.MagickSetCompression(mw.mw, C.CompressionType(compression))
	return mw.getLastErrorIfFailed(ok)
}