imagefilledarc
(PHP 4 >= 4.0.6, PHP 5)
imagefilledarc — Draw a partial ellipse and fill it
설명
bool imagefilledarc
( resource $image
, int $cx
, int $cy
, int $width
, int $height
, int $start
, int $end
, int $color
, int $style
)
Draws a partial ellipse centered at the specified coordinate in the given image .
매개변수
- font
-
내장 글꼴 1, 2, 3, 4, 5(큰 숫자가 큰 글꼴)나 imageloadfont()로 등록한 글꼴 식별자를 사용할 수 있습니다.
- cx
-
x-coordinate of the center
- cy
-
y-coordinate of the center
- width
-
The arc width
- height
-
The arc height
- start
-
The arc start angle, in degrees.
- end
-
The arc end angle, in degrees. 0° is located at the three-o'clock position, and the arc is drawn clockwise.
- color
-
A color identifier created with imagecolorallocate()
- style
-
A bitwise OR of the following possibilities:
- IMG_ARC_PIE
- IMG_ARC_CHORD
- IMG_ARC_NOFILL
- IMG_ARC_EDGED
반환값
성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.
예제
Example#1 Creating a 3D looking pie
<?php
// create image
$image = imagecreatetruecolor(100, 100);
// allocate some solors
$white = imagecolor