invertFromUint32List static method

Future<Image> invertFromUint32List({
  1. required Uint32List uint32list,
  2. required int imageWidth,
  3. required int imageHeight,
  4. PixelFormat pixelFormat = PixelFormat.rgba8888,
})

-------------------------------------INVERT------------------------------------------- The image pixel set is inverted and then the image is generated. @uint32list: uint32list is the Uint32list collection converted from image pixels, not the Uint32List collection converted from image binary.

@imageWidth & @imageHeight: imageWidth and imageHeight are the height and width of the image.

@pixelFormat: The pixel collection produces an image in the pixelFormat pixel format, See PixelFormat for more details.

Implementation

static Future<Image> invertFromUint32List({
  required Uint32List uint32list,
  required int imageWidth,
  required int imageHeight,
  PixelFormat pixelFormat = PixelFormat.rgba8888,
}) =>
    IImageInvert.invertFromUint32List(
      uint32list: uint32list,
      imageWidth: imageWidth,
      imageHeight: imageHeight,
      pixelFormat: pixelFormat,
    );