imagedashedline() ফাংশন একটি ড্যাশড লাইন আঁকে।
সিনট্যাক্স
imagedashedline( $image , $x1 , $y1 , $x2 , $y2 , $color )
প্যারামিটার
-
ছবি
দিয়ে একটি ফাঁকা ছবি তৈরি করুন
imagecreatetruecolor(). -
x1
উপরের বাম এক্স-অর্ডিনেট -
y1
উপরের বাম y-অর্ডিনেট -
x2
নীচে ডানদিকে x-সমন্বয় -
y2
নীচের ডানদিকে y-অর্ডিনেট -
রঙ
ভরাট রঙ।
ফেরত
ফাংশনটি সাফল্যের জন্য সত্য বা ব্যর্থতার জন্য মিথ্যা প্রদান করে৷
উদাহরণ
নিম্নলিখিত একটি উদাহরণ:
<?php
$image = imagecreatetruecolor(500, 370);
$bgcolor = imagecolorallocate($image, 70, 90, 120);
imagefill($image, 0, 0, $bgcolor);
$color = imagecolorallocate($image, 90, 220, 175);
imagedashedline($image, 0, 0, 150, 50, $color);
header("Content-type: image/png");
imagepng($image);
?> আউটপুট
নিম্নলিখিত আউটপুট:
