imageellipseとは? わかりやすく解説

imageellipse

(PHP 4 >= 4.0.6, PHP 5)
imageellipse — 楕円を描画する

説明

bool imageellipse ( resource image, int cx, int cy, int width, int height, int color )
指定した座標を中心とする楕円を描画します。

パラメータ

image
imagecreatetruecolor() のような画像作成関数が返す画像リソース。
cx
中心の x 座標。
cy
中心の y 座標。
width
楕円の幅。
height
楕円の高さ。
color
楕円の色を、 imagecolorallocate() で作成した画像 ID で指定します。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例 929. imageellipse() の例
<?php

// 空の画像を生成します
$image = imagecreatetruecolor(400, 300);

// 背景色を塗ります
$bg = imagecolorallocate($image, 0, 0, 0);

// 楕円の色を選択します
$col_ellipse = imagecolorallocate($image, 255, 255, 255);

// 楕円を描画します
imageellipse($image, 200, 150, 300, 200, $col_ellipse);

// 画像を出力します
header("Content-type: image/png");
imagepng($image);

?>
上の例の出力は、たとえば 以下のようになります。
imageellipse

注意

注意: この関数は GD 2.0.2 以降を必要とします。

参考

imagefilledellipse()
imagearc()





固有名詞の分類

このページでは「PHP関数リファレンス」からimageellipseを検索した結果を表示しています。
Weblioに収録されているすべての辞書からimageellipseを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からimageellipse を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「imageellipse」の関連用語

imageellipseのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



imageellipseのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2025 by the PHP Documentation Group.

©2025 GRAS Group, Inc.RSS