Exemple #1
0
func (self *Canvas) SetInterlaceScheme(scheme uint) error {
	if C.MagickSetImageInterlaceScheme(self.wand, C.InterlaceType(scheme)) == C.MagickFalse {
		return fmt.Errorf("Could not set interlace scheme: %s", self.Error())
	}

	return nil
}
Exemple #2
0
// Sets the image interlacing scheme
func (mw *MagickWand) SetInterlaceScheme(scheme InterlaceType) error {
	C.MagickSetInterlaceScheme(mw.mw, C.InterlaceType(scheme))
	return mw.GetLastError()
}
// Sets the image interlacing scheme
func (mw *MagickWand) SetInterlaceScheme(scheme InterlaceType) error {
	ok := C.MagickSetInterlaceScheme(mw.mw, C.InterlaceType(scheme))
	return mw.getLastErrorIfFailed(ok)
}