Example #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
}
Example #2
0
// Sets the wand compression type.
func (mw *MagickWand) SetCompression(compression CompressionType) error {
	C.MagickSetCompression(mw.mw, C.CompressionType(compression))
	return mw.GetLastError()
}
Example #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)
}