PHP 8.4.6 Released!

ImagickDraw::__construct

(PECL imagick 2, PECL imagick 3)

ImagickDraw::__constructThe ImagickDraw constructor

Description

public ImagickDraw::__construct()
Warning

This function is currently not documented; only its argument list is available.

The ImagickDraw constructor.

Return Values

No value is returned.

User Contributed Notes

Anonymous
16 years ago
To set up and output an image the very minimum:
<?php
$img
= new Imagick();
$img->newImage( 200, 200, new ImagickPixel( 'lime' ) );
$img->setImageFormat( "png" );
header( "Content-Type: image/png" );
echo
$img;
?>
Copy, paste; and if imagemagick is enabled it should come up with a lime colored square.
To Top