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.
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,
);