magickExportImageLongPixels method
Extracts pixel data from an image and returns it to you. The data is returned as in the order specified by map.
This method runs inside an isolate different from the main isolate.
-
x
: The region x offset. -
y
: The region y offset. -
columns
: The region width. -
rows
: The region height. -
map
: This string reflects the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha (0 is transparent), O = alpha (0 is opaque), C = cyan, Y = yellow, M = magenta, K = black, I = intensity (for grayscale), P = pad. -
See also: magickConstituteImageFromLongPixel
Sending invalid parameters will cause an invalid state and may crash the app, so you should make sure to validate the input to this method.
Implementation
Future<Uint32List?> magickExportImageLongPixels({
required int x,
required int y,
required int columns,
required int rows,
required String map,
}) async =>
await _magickCompute(
_magickExportImageLongPixels,
_MagickExportImagePixelsParams(
_wandPtr.address,
x,
y,
columns,
rows,
map,
),
);