ImagickDraw::skewX

(PECL imagick 2.0.0)

ImagickDraw::skewXSkews the current coordinate system in the horizontal direction

说明

bool ImagickDraw::skewX ( float $degrees )
Warning

本函数还未编写文档,仅有参数列表。

Skews the current coordinate system in the horizontal direction.

参数

degrees

degrees to skew

返回值

没有返回值。

范例

Example #1 ImagickDraw::skewX()

<?php
function skewX($strokeColor$fillColor$backgroundColor$fillModifiedColor
               
$startX$startY$endX$endY$skew) {

    
$draw = new \ImagickDraw();

    
$draw->setStrokeColor($strokeColor);
    
$draw->setStrokeWidth(2);
    
$draw->setFillColor($fillColor);
    
$draw->rectangle($startX$startY$endX$endY);
    
$draw->setFillColor($fillModifiedColor);
    
$draw->skewX($skew);
    
$draw->rectangle($startX$startY$endX$endY);

    
$image = new \Imagick();
    
$image->newImage(500500$backgroundColor);
    
$image->setImageFormat("png");

    
$image->drawImage($draw);

    
header("Content-Type: image/png");
    echo 
$image->getImageBlob();
}

?>

User Contributed Notes

There are no user contributed notes for this page.