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