newPixelRegionIterator static method
PixelIterator?
newPixelRegionIterator({
- required MagickWand wand,
- required int x,
- required int y,
- required int width,
- 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.
xThe x offset of the region.yThe y offset of the region.widthThe width of the region.heightThe 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,
);