亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gd.php

?? 現在的這個版本除了對代碼進了相當多的優化以外
?? PHP
?? 第 1 頁 / 共 2 頁
字號:


        imagepalettecopy($img2,$img);

        $mask   = imagecolorresolve($img2,$color_mask[0],$color_mask[1],$color_mask[2]);

        // use simple lines copy for axes angles
        switch((int)($angle)){
            case 0:
                imagefill ($img2, 0, 0,$mask);
                for ($y=0; $y < $max_y; $y++) {
                    for ($x = $min_x; $x < $max_x; $x++){
                        $c  = @imagecolorat ( $img, $x, $y);
                        imagesetpixel($img2,$x+$x_offset,$y+$y_offset,$c);
                    }
                }
                break;
            case 90:
                imagefill ($img2, 0, 0,$mask);
                for ($x = $min_x; $x < $max_x; $x++){
                    for ($y=$min_y; $y < $max_y; $y++) {
                        $c  = imagecolorat ( $img, $x, $y);
                        imagesetpixel($img2,$max_y-$y-1,$x,$c);
                    }
                }
                break;
            case 180:
                imagefill ($img2, 0, 0,$mask);
                for ($y=0; $y < $max_y; $y++) {
                    for ($x = $min_x; $x < $max_x; $x++){
                        $c  = @imagecolorat ( $img, $x, $y);
                        imagesetpixel($img2, $max_x2-$x-1, $max_y2-$y-1, $c);
                    }
                }
                break;
            case 270:
                imagefill ($img2, 0, 0,$mask);
                for ($y=0; $y < $max_y; $y++) {
                    for ($x = $max_x; $x >= $min_x; $x--){
                        $c  = @imagecolorat ( $img, $x, $y);
                        imagesetpixel($img2,$y,$max_x-$x-1,$c);
                    }
                }
                break;
            // simple reverse rotation algo
            default:
                $i=0;
                for ($y = $min_y2; $y < $max_y2; $y++){

                    // Algebra :)
                    $x2 = round((($min_x2-$x1) * $cosT) + (($y-$y1) * $sinT + $x1),0);
                    $y2 = round((($y-$y1) * $cosT - ($min_x2-$x1) * $sinT + $y1),0);

                    for ($x = $min_x2; $x < $max_x2; $x++){

                        // Check if we are out of original bounces, if we are
                        // use the default color mask
                        if ( $x2>=0 && $x2<$max_x && $y2>=0 && $y2<$max_y ){
                            $c  = imagecolorat ( $img, $x2, $y2);
                        } else {
                            $c  = $mask;
                        }
                        imagesetpixel($img2,$x+$x_offset,$y+$y_offset,$c);

                        // round verboten!
                        $x2  += $cosT;
                        $y2  -= $sinT;
                    }
                }
                break;
        }
        $this->old_image    = $this->imageHandle;
        $this->imageHandle  =  $img2;
        return true;
    }


   /**
    * Resize Action
    *
    * For GD 2.01+ the new copyresampled function is used
    * It uses a bicubic interpolation algorithm to get far
    * better result.
    *
    * @param $new_x int  new width
    * @param $new_y int  new height
    *
    * @return true on success or pear error
    * @see PEAR::isError()
    */
    function _resize($new_x, $new_y) {
        if ($this->resized === true) {
            return false; /*PEAR::raiseError('You have already resized the image without saving it.  Your previous resizing will be overwritten', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE);*/
        }
        if(function_exists('ImageCreateTrueColor')){
            $new_img =ImageCreateTrueColor($new_x,$new_y);
        } else {
            $new_img =ImageCreate($new_x,$new_y);
        }
        if(function_exists('ImageCopyResampled')){
            ImageCopyResampled($new_img, $this->imageHandle, 0, 0, 0, 0, $new_x, $new_y, $this->img_x, $this->img_y);
        } else {
            ImageCopyResized($new_img, $this->imageHandle, 0, 0, 0, 0, $new_x, $new_y, $this->img_x, $this->img_y);
        }
        $this->old_image = $this->imageHandle;
        $this->imageHandle = $new_img;
        $this->resized = true;

        $this->new_x = $new_x;
        $this->new_y = $new_y;
        return true;
    }

    /**
     * Crop the image
     *
     * @param int $crop_x left column of the image
     * @param int $crop_y top row of the image
     * @param int $crop_width new cropped image width
     * @param int $crop_height new cropped image height
     */
    function crop($new_x, $new_y, $new_width, $new_height) 
    {
        if(function_exists('ImageCreateTrueColor')){
            $new_img =ImageCreateTrueColor($new_width,$new_height);
        } else {
            $new_img =ImageCreate($new_width,$new_height);
        }
        if(function_exists('ImageCopyResampled')){
            ImageCopyResampled($new_img, $this->imageHandle, 0, 0, $new_x, $new_y,$new_width,$new_height,$new_width,$new_height);
        } else {
            ImageCopyResized($new_img, $this->imageHandle, 0, 0, $new_x, $new_y, $new_width,$new_height,$new_width,$new_height);
        }
        $this->old_image = $this->imageHandle;
        $this->imageHandle = $new_img;
        $this->resized = true;

        $this->new_x = $new_x;
        $this->new_y = $new_y;
        return true;
    }
   
    /**
     * Flip the image horizontally or vertically
     *
     * @param boolean $horizontal true if horizontal flip, vertical otherwise
     */
    function flip($horizontal)
    {
        if(!$horizontal) {
            $this->rotate(180);
        }

        $width = imagesx($this->imageHandle); 
        $height = imagesy($this->imageHandle); 

        for ($j = 0; $j < $height; $j++) { 
                $left = 0; 
                $right = $width-1; 


                while ($left < $right) { 
                    //echo " j:".$j." l:".$left." r:".$right."\n<br>";
                    $t = imagecolorat($this->imageHandle, $left, $j); 
                    imagesetpixel($this->imageHandle, $left, $j, imagecolorat($this->imageHandle, $right, $j)); 
                    imagesetpixel($this->imageHandle, $right, $j, $t); 
                    $left++; $right--; 
                } 
            
        }

        return true;
    }


    /**
     * Adjust the image gamma
     *
     * @param float $outputgamma
     *
     * @return none
     */
    function gamma($outputgamma=1.0) {
        ImageGammaCorrect($this->imageHandle, 1.0, $outputgamma);
    }

    /**
     * Save the image file
     *
     * @param $filename string  the name of the file to write to
     * @param $quality  int     output DPI, default is 85
     * @param $types    string  define the output format, default
     *                          is the current used format
     *
     * @return none
     */
    function save($filename, $type = '', $quality = 85)
    {
		$type           = $type==''? $this->type : $type;
		$functionName   = 'image' . $type;

		if(function_exists($functionName))
		{
			$this->old_image = $this->imageHandle;
			if($type=='jpeg')
				$functionName($this->imageHandle, $filename, $quality);
			else
				$functionName($this->imageHandle, $filename);
			$this->imageHandle = $this->old_image;
			$this->resized = false;
		}
    } // End save


    /**
     * Display image without saving and lose changes
     *
     * @param string type (JPG,PNG...);
     * @param int quality 75
     *
     * @return none
     */
    function display($type = '', $quality = 75)
    {
        if ($type != '') {
            $this->type = $type;
        }
        $functionName = 'Image' . $this->type;
		if(function_exists($functionName))
		{
			header('Content-type: image/' . strtolower($this->type));
			$functionName($this->imageHandle, '', $quality);
			$this->imageHandle = $this->old_image;
			$this->resized = false;
			ImageDestroy($this->old_image);
			$this->free();
		}
    }

    /**
     * Destroy image handle
     *
     * @return none
     */
    function free()
    {
        if ($this->imageHandle){
            ImageDestroy($this->imageHandle);
        }
    }

} // End class ImageGD
?>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本高清不卡视频| 91蝌蚪porny| 国产一区二区三区精品欧美日韩一区二区三区| 亚洲一区中文日韩| 国产高清精品久久久久| 波多野结衣欧美| 欧美吻胸吃奶大尺度电影 | 欧美日韩精品电影| 在线不卡a资源高清| 国产精品国产三级国产aⅴ中文| 久久综合久久久久88| 国产精品国产a| 免费成人你懂的| 国产高清无密码一区二区三区| 91免费国产在线| 久久久久久黄色| 亚洲3atv精品一区二区三区| 国产又粗又猛又爽又黄91精品| 一本色道久久综合亚洲精品按摩| 精品国产一区二区三区不卡| 亚洲一区二区三区在线播放| 粉嫩一区二区三区在线看| 6080日韩午夜伦伦午夜伦| 亚洲色图制服丝袜| 国产999精品久久久久久| 日韩美女主播在线视频一区二区三区| 亚洲女同女同女同女同女同69| 狠狠色丁香婷婷综合| 日韩亚洲欧美高清| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美影院一区二区三区| 一区二区三区不卡视频在线观看| 成人综合在线视频| 国产精品网站在线观看| 99精品视频在线播放观看| 最新国产成人在线观看| 99免费精品在线观看| 综合久久久久久| 一本久道久久综合中文字幕| 亚洲桃色在线一区| 在线观看中文字幕不卡| 日韩中文字幕区一区有砖一区 | 欧美国产成人精品| 国产91丝袜在线18| 国产精品福利影院| 色屁屁一区二区| 五月天网站亚洲| 中文字幕成人av| 欧美三级三级三级爽爽爽| 免费观看一级欧美片| 日本一二三不卡| 欧美日韩一区二区三区视频| 免费成人在线影院| 日韩福利视频导航| 国产精品的网站| 日韩毛片精品高清免费| 欧美成人乱码一区二区三区| 欧美日韩国产精品成人| 成人av免费网站| 人禽交欧美网站| 亚洲伦理在线免费看| xfplay精品久久| 91精品国产综合久久香蕉麻豆| 欧美日韩色一区| 国产一区二区精品久久91| 亚洲va欧美va人人爽午夜| 国产精品久久久久久久浪潮网站 | 天天亚洲美女在线视频| 亚洲三级电影网站| 国产午夜亚洲精品不卡| 91精品国产色综合久久不卡电影| 91麻豆精品秘密| 91一区在线观看| 97精品久久久久中文字幕| 国产精品99久久久久久似苏梦涵| 日本欧美一区二区| 日本欧美一区二区在线观看| 一区二区三区四区精品在线视频 | 国产在线播放一区二区三区| 日韩高清电影一区| 国产在线一区二区综合免费视频| 青青草91视频| 国产一区二区三区国产| 国产凹凸在线观看一区二区| 国产精品影音先锋| 成人动漫一区二区| 99国产精品久久久久久久久久| aaa欧美色吧激情视频| 91免费观看在线| 日韩精品最新网址| 精品国产区一区| 亚洲欧洲综合另类在线| 奇米一区二区三区av| 国产999精品久久久久久绿帽| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 成人在线视频一区二区| av不卡免费在线观看| 欧美日韩一区视频| 久久久99久久精品欧美| 亚洲综合色视频| 国产精品亚洲一区二区三区在线| 94-欧美-setu| 国产精品网站在线| 蜜桃传媒麻豆第一区在线观看| 国产美女在线精品| 欧美乱熟臀69xxxxxx| 久久久久国产精品麻豆| 午夜精品福利在线| 成人黄色在线看| 国产校园另类小说区| 国产美女在线精品| 国产色综合一区| 国产乱子伦视频一区二区三区| 337p亚洲精品色噜噜| 国产精品久久久久久久久动漫| 蜜臀91精品一区二区三区| 日本精品一区二区三区高清| 国产精品美女久久久久久| 国产一区二三区| 国产人成一区二区三区影院| 国产呦萝稀缺另类资源| 日韩精品一区在线观看| 久久99国产精品久久| 日韩午夜激情av| 九九视频精品免费| 久久久天堂av| av一二三不卡影片| 亚洲女厕所小便bbb| 日本久久电影网| 亚洲国产精品综合小说图片区| 91国内精品野花午夜精品| 亚洲猫色日本管| 欧美日韩精品一区二区三区| 免费的成人av| 欧美国产1区2区| 91蜜桃免费观看视频| 亚洲r级在线视频| 久久天堂av综合合色蜜桃网| 成人黄色免费短视频| 亚洲精品国产一区二区精华液 | 免费成人性网站| 中文字幕一区二区三区不卡在线| 欧美日韩国产片| 不卡视频免费播放| 亚洲高清免费一级二级三级| 国产调教视频一区| 欧美天堂一区二区三区| 国产99久久久国产精品潘金| 亚洲图片欧美视频| 亚洲国产精品激情在线观看 | 一区二区在线看| 国产欧美精品日韩区二区麻豆天美| 91天堂素人约啪| 国产成人午夜视频| 波多野结衣在线aⅴ中文字幕不卡| 丝袜脚交一区二区| 樱花草国产18久久久久| 久久精品视频网| 2021久久国产精品不只是精品| 欧美日韩一区二区三区不卡| 91小视频免费看| 99久久婷婷国产综合精品| 精品影视av免费| 亚洲一区二区欧美激情| 亚洲女人****多毛耸耸8| 中文字幕一区二区三中文字幕| 久久综合av免费| 精品av综合导航| 久久久国际精品| 中文字幕亚洲不卡| 亚洲一区二区在线免费观看视频| 亚洲欧美一区二区三区久本道91 | 欧美天天综合网| 欧美日韩大陆一区二区| 欧美一区二视频| 久久这里都是精品| 成人免费一区二区三区视频| 国产日韩v精品一区二区| 中文字幕色av一区二区三区| 亚洲卡通欧美制服中文| 美腿丝袜亚洲一区| 岛国av在线一区| 欧美日韩国产另类一区| 久久欧美一区二区| 一区二区三区加勒比av| 蜜臀av一区二区三区| 成人激情免费视频| 欧美精品三级日韩久久| 国产丝袜美腿一区二区三区| 亚洲精品乱码久久久久久黑人| 日韩有码一区二区三区| 国产二区国产一区在线观看 | 一色桃子久久精品亚洲| 日韩电影一区二区三区| 成人国产精品免费网站| 欧洲精品一区二区三区在线观看| 精品1区2区在线观看| 亚洲福利视频一区| caoporm超碰国产精品| www精品美女久久久tv|