php8.5
Home/ Manual/ imagick / imagick/ Imagick::polaroidImage

Imagick::polaroidImage

PHP function Edit on GitHub ✎

(PECL imagick 2, PECL imagick 3)

Simulates a Polaroid picture

Description

Imagick::polaroidImage(ImagickDraw $properties, float $angle): bool

Simulates a Polaroid picture. 0x632

Parameters

properties

The polaroid properties

angle

The polaroid angle

Return Values

Success

Examples

A Imagick::polaroidImage() example

An example of using Imagick::polaroidImage()

php
<?php
/* Create the object */
$image = new Imagick('source.png');

/* Set the opacity */
$image->polaroidImage(new ImagickDraw(), 25);

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

?>

Source: reference/imagick/imagick/polaroidimage.xml · from the official PHP manual (php/doc-en)