コード例 #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
ファイル: pixel_iterator.go プロジェクト: palaiyacw/imagick
// Syncs the pixel iterator.
func (pi *PixelIterator) SyncIterator() error {
	ok := C.PixelSyncIterator(pi.pi)
	return pi.getLastErrorIfFailed(ok)
}