// Returns the next row as an array of pixel wands from the pixel iterator. func (pi *PixelIterator) GetNextIteratorRow() (pws []*PixelWand) { num := C.size_t(0) pp := C.PixelGetNextIteratorRow(pi.pi, &num) if pp == nil { return } for i := 0; i < int(num); i++ { cpw := C.get_pw_at(pp, C.size_t(i)) pws = append(pws, &PixelWand{cpw}) } return }
func (self *PixelIterator) NextRow() (row []*Pixel) { pixelCount := C.size_t(0) pixels := C.PixelGetNextIteratorRow(self.iterator, &pixelCount) if pixels == nil { return nil } for i := 0; i < int(pixelCount); i++ { wand := C.get_pixel_wands_at(pixels, C.size_t(i)) row = append(row, &Pixel{wand: wand}) } return }