PHP » GoLang |
login |
register |
about
|
GoLang Imagick::distortImage
request it (300)
GoLang replacement for PHP's Imagick::distortImage
[edit | history]
Imagick::distortImage(PECL imagick 2.0.1) Imagick::distortImage — Distorts an image using various distortion methods Description
bool Imagick::distortImage
( int
$method
, array $arguments
, bool $bestfit
)
Distorts an image using various distortion methods, by mapping color
lookups of the source image to a new destination image usually of the same
size as the source image, unless 'bestfit' is set to If 'bestfit' is enabled, and distortion allows it, the destination image is adjusted to ensure the whole source 'image' will just fit within the final destination image, which will be sized and offset accordingly. Also in many cases the virtual offset of the source image will be taken into account in the mapping. This method is available if Imagick has been compiled against ImageMagick version 6.3.6 or newer. Parameters
Return Values
Returns Errors/ExceptionsThrows ImagickException on error. Examples
Example #1 Using Imagick::distortImage(): Distort an image and display to the browser.
<?php The above example will output something similar to: See Also
|
more
Recently updated
more
Most requested
more
Last requests
|