Imagick::newImage
(No version information available, might be only in CVS)
Imagick::newImage — Creates a new image
Description
Αυτή η συνάρτηση επί του παρόντος δεν είναι τεκμηριωμένη, μόνο ο κατάλογος των argument της είναι διαθέσιμος.
Αυτή η συνάρτηση είναι ΔΟΚΙΜΑΣΤΙΚΗ. Η συμπεριφορά της, το όνομα της και οτιδήποτε άλλο είναι τεκμηριωμένο σχετικά με αυτή την συνάρτηση μπορεί να αλλάξει χωρίς ειδοποίηση σε μελλοντικές εκδόσεις της PHP. Χρησιμοποιήστε αυτή την συνάρτηση με δικό σας ρίσκο.
Creates a new image and associates ImagickPixel value as background color
Parameters
- 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.
Return Values
Returns TRUE on success.
Παραδείγματα
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;
?>