|
update : 2015.11.03
php.shukuma.com검색:
|
Imagick::exportImagePixels(No version information available, might only be in Git) Imagick::exportImagePixels — Exports raw image pixels 설명
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). 이 메쏘드는 Imagick을 ImageMagick 6.4.7 이상으로 컴파일 했을 때만 사용할 수 있습니다. 인수
예제
Example #1 Using Imagick::exportImagePixels() Export image pixels into an array
<?php위 예제의 출력:
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)
}
반환값Returns an array containing the pixels values. 오류/예외오류시에 ImagickException이 발생합니다. |