当前位置 : 主页 > 网络编程 > PHP >

img-table.php

来源:互联网 收集:自由互联 发布时间:2021-06-28
img-table.php 16) 0xFF, 10, 16), 2, "0", STR_PAD_LEFT); $g = str_pad(base_convert(($rgb8) 0xFF, 10, 16), 2, "0", STR_PAD_LEFT); $b = str_pad(base_convert($rgb 0xFF, 10, 16), 2, "0", STR_PAD_LEFT); return $r . $g . $b; } $FILE = "20170313140
img-table.php


 
    
  >16) & 0xFF, 10, 16), 2, "0", STR_PAD_LEFT);
        $g = str_pad(base_convert(($rgb>>8) & 0xFF, 10, 16), 2, "0", STR_PAD_LEFT);
        $b = str_pad(base_convert($rgb & 0xFF, 10, 16), 2, "0", STR_PAD_LEFT);
        return $r . $g . $b;
    }
    $FILE = "20170313140018.jpg";
    $size = getimagesize($FILE);
    $img = imagecreatefromjpeg($FILE);

    for ($i = 0; $i < $size[1]; $i++)
    {
        echo "
  
   
    "; for ($j = 0; $j < $size[0]; $j++) { $rgb = rgb(imagecolorat($img, $j, $i)); echo ""; } echo "
   "; } ?> 
  
 
上一篇:biquge.php
下一篇:dnmusic.php
网友评论