HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Example

function setSeed(int $seed)
{
    $imagick = new \Imagick();
    Imagick::setSeed($seed);
    $imagick->newPseudoImage(400, 400, 'plasma:tomato-blue');
    $imagick->setImageFormat('jpg');

    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}