本文整理汇总了PHP中imagick::distortImage方法的典型用法代码示例。如果您正苦于以下问题:PHP imagick::distortImage方法的具体用法?PHP imagick::distortImage怎么用?PHP imagick::distortImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类imagick
的用法示例。
在下文中一共展示了imagick::distortImage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: imagejpeg
}
//Waving the image
$x = 0;
$y = 0;
$period = 10;
wave_image($image, $x, $y, $image_width, $image_height, $amplitude);
// Create the image and save it to a temporary file
imagejpeg($image, $name);
// Create a new image from the created one using this time ImageMagick function
$image = new imagick($name);
$image->setImageFormat('png');
$image->setImageVirtualPixelMethod(Imagick::VIRTUALPIXELMETHOD_TRANSPARENT);
// Perspective points
$points = array(0, 0, 0, 0, 0, 90, 0, 90, 90, 0, 90, 0, 90, 90, 90, 65);
// Distorte the image
$image->distortImage(Imagick::DISTORTION_PERSPECTIVE, $points, TRUE);
// Print the new image
echo $image;
// Delete the last image
unlink($name);
} else {
if ($_GET['lvl'] === "Captcha_with_3D_radius" and !empty($_GET['text'])) {
$parts = str_split($text, 15);
// If the number of characters is higher than 15, then divide it after each 15 characters counted
set_time_limit(0);
header('Content-type: image/gif');
require 'Text3D.class.php';
require 'GIFEncoder.class.php';
$j = 0;
$k = 0;
if (strlen($text) > 15 and strlen($text) < 25) {