PHP » GoLang |
login |
register |
about
|
GoLang Imagick::exportImagePixels
request it (266)
GoLang replacement for PHP's Imagick::exportImagePixels
[edit | history]
PHP Imagick::exportImagePixelsPHP original manual for Imagick::exportImagePixels [ show | php.net ]Imagick::exportImagePixels(No version information available, might only be in Git) Imagick::exportImagePixels — Exports raw image pixels Description
public array Imagick::exportImagePixels
( int
$x
, int $y
, int $width
, int $height
, string $map
, int $STORAGE
)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
Examples
Example #1 Using Imagick::exportImagePixels() Export image pixels into an array
<?php The above example will output: array(12) { [0]=> int(72) [1]=> int(64) [2]=> int(57) [3]=> int(69) [4]=> int(59) [5]=> int(43) [6]=> int(124) [7]=> int(120) [8]=> int(-96) [9]=> int(91) [10]=> int(84) [11]=> int(111) } Return ValuesReturns an array containing the pixels values. Errors/ExceptionsThrows ImagickException on error. |
more
Recently updated
more
Most requested
more
Last requests
|