Example #1
0
func (self *PixelIterator) Sync() error {
	if C.PixelSyncIterator(self.iterator) == C.MagickFalse {
		return fmt.Errorf("cannot sync iterator: %s", self.Error())
	}

	return nil
}
// Syncs the pixel iterator.
func (pi *PixelIterator) SyncIterator() error {
	C.PixelSyncIterator(pi.pi)
	return pi.GetLastError()
}
Example #3
0
// Syncs the pixel iterator.
func (pi *PixelIterator) SyncIterator() error {
	ok := C.PixelSyncIterator(pi.pi)
	return pi.getLastErrorIfFailed(ok)
}