কম্পিউটার

PHP-তে imagefilledellipse() ফাংশন


imagefilledellipse() ফাংশনটি একটি ভরা উপবৃত্ত আঁকতে ব্যবহৃত হয়।

সিনট্যাক্স

imagefilledellipse( $img, $cx, $cy, $width, $height, $color )

প্যারামিটার

  • img এটি imagecreatettruecolor()

    সহ একটি ফাঁকা চিত্র তৈরি করে
  • cx কেন্দ্রের x-অর্ডিনেট।

  • cy কেন্দ্রের y-সমন্বয়।

  • প্রস্থ উপবৃত্তাকার প্রস্থ।

  • উচ্চতা উপবৃত্তের উচ্চতা।

  • রঙ ভরাট রঙ।

ফেরত

imagefilledellipse() ফাংশন সফল হলে TRUE বা ব্যর্থ হলে FALSE প্রদান করে।

উদাহরণ

নিম্নলিখিত একটি উদাহরণ:

<?php
   $img = imagecreatetruecolor(450, 290);
   $bgColor = imagecolorallocate($img, 140, 180, 140);
   imagefill($img, 0, 0, $bgColor);
   $ellipse = imagecolorallocate($img, 120, 50, 70);
   imagefilledellipse($img, 225, 150, 400, 250, $ellipse);
   header("Content-type: image/png");
   imagepng($img);
?>

আউটপুট

নিম্নলিখিত আউটপুট:

PHP-তে imagefilledellipse() ফাংশন


  1. PHP-তে imagepolygon() ফাংশন

  2. PHP-তে imagecreate() ফাংশন

  3. PHP-তে imagefill() ফাংশন

  4. PHP-তে imagefilledrectangle() ফাংশন