Forum und email

Imagick::newImage

(No version information available, might be only in CVS)

Imagick::newImage — Creates a new image

Popis

bool Imagick::newImage ( int $cols , int $rows , ImagickPixel $background [, string $format ] )
Warning

Táto funkcia nie je momentálne zdokumentovaná; je dostupný len zoznam argumentov.

Warning

Táto funkcia je EXPERIMENTÁLNA. Správanie tejto funkcie, názov tejto funkcie a hocičo iné zdokumentované o tejto funkcii sa môže zmeniť bez povšimnutia v budúcom vydaní PHP. Používajte túto funkcii na svoje vlastné riziko.

Creates a new image and associates ImagickPixel value as background color

Parametre

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.

Vrátené hodnoty

Returns TRUE on success.

Príklady

Example#1 Using Imagick::newImage():

Create a new image and display it.

<?php

$image 
= new Imagick();
$image->newImage(100100, new ImagickPixel('red'));
$image->setImageFormat('png');

header('Content-type: image/png');
echo 
$image;

?>