예제 #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
}
예제 #2
0
// Syncs the pixel iterator.
func (pi *PixelIterator) SyncIterator() error {
	C.PixelSyncIterator(pi.pi)
	return pi.GetLastError()
}
예제 #3
0
// Syncs the pixel iterator.
func (pi *PixelIterator) SyncIterator() error {
	ok := C.PixelSyncIterator(pi.pi)
	return pi.getLastErrorIfFailed(ok)
}