Functions page: 20

Set last iterator
Sets the Imagick iterator to the last image.
None

Set option
Associates one or more options with the wand.
None

Set page
Sets the page geometry of the Imagick object.
None

Set point size
Sets object's point size property.
None



This method can be used for example to set font size for caption: pseudo-format.
Set resolution
Sets the image resolution.
None

Set resource limit
Sets the limit for a particular resource in megabytes.
Set resource limit example

bool setResourceLimit ( int $type , int $limit )

<?php 
$im 
= new Imagick($input);
$im->setResourceLimitImagick::RESOURCETYPE_MEMORY200);
$shadow $im->clone(); 
$shadow->setImageBackgroundColor( new ImagickPixel'black' ) ); 
$shadow->shadowImage8035); 
$shadow->compositeImage$imImagick::COMPOSITE_OVER0); 
$shadow->writeImage"setResourceLimit.png" );
$shadow->destroy();
 
?>
Set sampling factors
Sets the image sampling factors.
None

Set size
Sets the size of the Imagick object.
None



Set it before you read a raw image format such as RGB, GRAY, or CMYK.
Set size offset
Sets the size and offset of the Imagick object.
None



Set it before you read a raw image format such as RGB, GRAY, or CMYK.
Set type

None



Sets the image type attribute.
SetImageIterations
Sets the image iterations.
None

Shade image
Shines a distant light on an image to create a three-dimensional effect.
None



You control the positioning of the light with azimuth and elevation; azimuth is measured in degrees off the x axis and elevation is measured in pixels above the Z axis.
shadowImage
Simulates an image shadow.
shadowImage example

bool shadowImage ( float $opacity , float $sigma , int $x , int $y )

<?php 
$im 
= new Imagick($input);
$shadow $im->clone(); 
$shadow->setImageBackgroundColor( new ImagickPixel'black' ) ); 
$shadow->shadowImage8035); 
$shadow->compositeImage$imImagick::COMPOSITE_OVER0); 
$shadow->writeImage"shadowImage.png" );
$shadow->destroy();
 
?>
Sharpen image
Sharpens an image.
Sharpen image example

bool sharpenImage ( float $radius , float $sigma [, int $channel = Imagick::CHANNEL_ALL ] )

<?php 
$im 
= new Imagick($input);
$im->sharpenImage20);
$im->writeImage('sharpenImage.jpg'); 
$im->destroy();
 
?>


We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, the radius should be larger than sigma. Use a radius of 0 and selects a suitable radius for you.
Shave image
Shaves pixels from the image edges.
Shave image example

bool shaveImage ( int $columns , int $rows )

<?php 
$im 
= new Imagick($input);
$im->shaveImage550 );
$im->writeImage('shaveImage.jpg'); 
$im->destroy();
 
?>


It allocates the memory necessary for the new Image structure and returns a pointer to the new image.