newPixelRegionIterator static method

PixelIterator? newPixelRegionIterator({
  1. required MagickWand wand,
  2. required int x,
  3. required int y,
  4. required int width,
  5. required int height,
})

Returns a new pixel iterator for a region of the image. Don't forget to destroy the returned iterator using destroyPixelIterator when you are done with it.

  • x The x offset of the region.
  • y The y offset of the region.
  • width The width of the region.
  • height The height of the region.

Implementation

static PixelIterator? newPixelRegionIterator({
  required MagickWand wand,
  required int x,
  required int y,
  required int width,
  required int height,
}) =>
    PixelIterator._fromAddress(
      _magickWandBindings.NewPixelRegionIterator(
        wand._wandPtr,
        x,
        y,
        width,
        height,
      ).address,
    );