ブックマーク / www.php.net (1)

  • PHP: Imagick::getImagePixelColor - Manual

    I'm sure there are a lot of people like me who have been wondering, "How you manage to produce a human readable output of this operation?" <?php $image = new Imagick('testimage.jpg'); $x = 1; $y = 1; $pixel = $image->getImagePixelColor($x, $y); ?> If you try to print an output of the $pixel object, you get nothing. You have to use one of the ImagickPixel operations to get back a value. You can do

    PHP: Imagick::getImagePixelColor - Manual
    Beluga
    Beluga 2011/06/22
    指定したピクセルの色を取得する
  • 1