ImageMagick ImagickDraw::point

(PECL imagick 2, PECL imagick 3)

ImagickDraw::point — 점을 그립니다.


설명

public ImagickDraw::point(float $x, float $y): bool

경고 이 함수는 현재 문서화되어 있지 않습니다. 해당 인수 목록만 사용할 수 있습니다.

지정된 좌표에서 현재 획 색상과 획 두께를 사용하여 점을 그립니다.


매개변수

x
point's x coordinate
y
point's y coordinate

반환 값

값이 반환되지 않습니다.


Examples

예제 #1 ImagickDraw::point() 예제

                  
<?php
function point($fillColor, $backgroundColor) {

    $draw = new \ImagickDraw();

    $draw->setFillColor($fillColor);

    for ($x = 0; $x < 10000; $x++) {
        $draw->point(rand(0, 500), rand(0, 500));
    }

    $imagick = new \Imagick();
    $imagick->newImage(500, 500, $backgroundColor);
    $imagick->setImageFormat("png");
    $imagick->drawImage($draw);

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

?>