П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
Поиск по сайту:
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое








Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 6165 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 8299 раз(а).

Учебник HTML.
Просмотров 4920 раз(а).

Руководство по PHP5.
Просмотров 2036 раз(а).

Хостинг через призму DNS.
Просмотров 7047 раз(а).

Подборка текстов стандартных документов.
Просмотров 57564 раз(а).

Учебник PHP - Самоучитель
Просмотров 5213 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 11342 раз(а).

Внешние атаки...
Просмотров 7404 раз(а).

Учебник PHP.
Просмотров 4318 раз(а).

SSI в примерах.
Просмотров 1226 раз(а).



 
 
| Добавить в избранное | Сделать стартовой | Помощь





Руководство по PHP
Пред. След.

imagearc

(PHP 3, PHP 4, PHP 5)

imagearc -- Draw a partial ellipse

Description

bool imagearc ( resource image, int cx, int cy, int w, int h, int s, int e, int color )

imagearc() draws a partial ellipse centered at cx, cy (top left is 0, 0) in the image represented by image. W and h specifies the ellipse's width and height respectively while the start and end points are specified in degrees indicated by the s and e arguments. 0° is located at the three-o'clock position, and the arc is drawn clockwise.

Пример 1. Drawing a circle with imagearc()

<?php

// create a 200*200 image
$img = imagecreatetruecolor(200, 200);

// allocate some colors
$white = imagecolorallocate($img, 255, 255, 255);
$black = imagecolorallocate($img, 0, 0, 0);
   
// draw a black circle
imagearc($img, 100, 100, 150, 150, 0, 360, $black);

// output image in the browser
header("Content-type: image/png");
imagepng($img);
   
// free memory
imagedestroy($img);

?>

See also imageellipse(), imagefilledellipse(), and imagefilledarc().



Если Вы не нашли что искали, то рекомендую воспользоваться поиском по сайту:
 





Copyright © 2005-2016 Project.Net.Ru