|
اسكريپت تصوير ساز php تعداد بازدیدvisits : 254
|
|||||
senior
|
اسكريپت تصوير ساز php خط سوم اين كد مربوط به بك گراند مي باشد كه توسط كدهاي rgb ، رنگي را براي بك گراند مشخص كرديم ،حالا اگر بخواهيم بجاي رنگ از ايميج استفاده كنيم بايد از چه كدي استفاده شود ؟ کد: <?phpکد: $my_img = imagecreate( 300, 300 );کد: $background = imagecolorallocate( $my_img, 42, 42, 42 );کد: $text_colour = imagecolorallocate( $my_img, 255, 255, 0 );کد: $line_colour = imagecolorallocate( $my_img, 73, 74, 73 );کد: imagestring( $my_img, 4, 30, 5, "sdfsdf",$text_colour );کد: imagestring( $my_img, 4, 80, 5, "|",$text_colour );کد: imagestring( $my_img, 4, 180, 5, "ذرد",$text_colour );کد: imagesetthickness ( $my_img, 5 );کد: imageline( $my_img, 0, 3, 305, 3, $line_colour );کد: imageline( $my_img, 1, 44, 305, 44, $line_colour );
کد: header( "Content-type: image/png" );کد: imagepng( $my_img );کد: imagecolordeallocate( $line_color );کد: imagecolordeallocate( $text_color );کد: imagecolordeallocate( $background );کد: imagedestroy( $my_img );کد: ?>لطفا ً اگر نمونه كد هست براي من قرار بديد . |
||||
| سه شنبه 16 آبان 1391 - 11:04 |
|
||||
admin
![]() ![]() ![]() ![]()
|
پاسخAnswer 1 : اسكريپت تصوير ساز php من php بلد نیستم ... ![]() ![]()
!Whatever you DISRESPECT, you'll never have the ability to ACCESS
|
||||||||
| سه شنبه 16 آبان 1391 - 19:07 |
|