imagefilledrectangle() ফাংশন একটি পূর্ণ আয়তক্ষেত্র আঁকে।
সিনট্যাক্স
imagefilledrectangle( $img, $x1, $y1, $x2, $y2, $color )
প্যারামিটার
-
ছবি
দিয়ে একটি ফাঁকা ছবি তৈরি করুন
imagecreatetruecolor(). -
x1
পয়েন্ট 1 এর জন্য x-সমন্বয়। -
y1
পয়েন্ট 1 এর জন্য y-সমন্বয়। -
x2
পয়েন্ট 2 এর জন্য x-সমন্বয়। -
y2
পয়েন্ট 2 এর জন্য y-সমন্বয়। -
রঙ
ভরাট রঙ।
ফেরত
imagefilledrectangle() ফাংশন সফল হলে TRUE বা ব্যর্থ হলে FALSE প্রদান করে।
উদাহরণ
নিম্নলিখিত একটি উদাহরণ:
<?php
// Create an image
$img = imagecreatetruecolor(500, 300);
$color = imagecolorallocate($img, 0, 128, 128);
imagefilledrectangle($img, 30, 30, 470, 270, $color);
header("Content-type: image/png");
imagepng($img);
imagedestroy($img);
?> আউটপুট
নিম্নলিখিত আউটপুট:
