Imagick::newImage
(No version information available, might be only in CVS)
Imagick::newImage — Creates a new image
Descrição
Esta função não está documentada, somente a lista de argumentos está disponÃvel.
Esta função é EXPERIMENTAL. Isso quer dizer que o comportamento desta função e seu nome, incluindo TUDO o que está documentado aqui pode mudar em futuras versões do PHP, SEM QUALQUER NOTIFICAÇÃO. Esteja avisado, e use esta função por sua própria conta e risco.
Creates a new image and associates ImagickPixel value as background color
Parâmetros
- cols
-
Columns in the new image
- rows
-
Rows in the new image
- background
-
The background color used for this image
- format
-
Image format. This parameter was added in Imagick version 2.0.1.
Valor Retornado
Retorna TRUE em sucesso.
Exemplos
Example#1 Using Imagick::newImage():
Create a new image and display it.
<?php
$image = new Imagick();
$image->newImage(100, 100, new ImagickPixel('red'));
$image->setImageFormat('png');
header('Content-type: image/png');
echo $image;
?>