Description

Exports image pixels into an array. The map defines the ordering of the exported
pixels. The size of the returned array is width * height * strlen(map).
This method is available if Imagick has been compiled against ImageMagick version 6.4.7 or newer.

Parameters

x

X-coordinate of the exported area

y

Y-coordinate of the exported area

width

Width of the exported aread

height

Height of the exported area

map

Ordering of the exported pixels. For example "RGB".
Valid characters for the map are R, G, B, A, O, C, Y, M, K, I and P.