|
PHP5中文手册
Imagick::distortImage(No version information available, might be only in CVS) Imagick::distortImage — Distorts an image using various distortion methods 说明
bool Imagick::distortImage
( int $method
, array $arguments
, bool $bestfit
)
Warning
本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。 Distorts an image using various distortion methods, by mapping color lookups of the source image to a new destination image usally of the same size as the source image, unless 'bestfit' is set to true. 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 functionality is present if Imagick is compiled against ImageMagick 6.3.6 or later. 参数
返回值Returns TRUE on success. 错误/异常Throws ImagickException on error. 范例
Example#1 Using Imagick::distortImage(): Distort an image and write it to the disk.
<?php |