/* 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 }
// Sets the wand compression type. func (mw *MagickWand) SetCompression(compression CompressionType) error { C.MagickSetCompression(mw.mw, C.CompressionType(compression)) return mw.GetLastError() }
// Sets the wand compression type. func (mw *MagickWand) SetCompression(compression CompressionType) error { ok := C.MagickSetCompression(mw.mw, C.CompressionType(compression)) return mw.getLastErrorIfFailed(ok) }