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

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

?? jpgraph_gradient.php

?? 通達OA2007SE源代碼 非常好的
?? PHP
字號:
<?php/*=======================================================================// File:	JPGRAPH_GRADIENT.PHP// Description:	Create a color gradient// Created: 	2003-02-01// Author:	Johan Persson (johanp@aditus.nu)// Ver:		$Id: jpgraph_gradient.php 630 2006-05-26 00:09:30Z ljp $//// Copyright (c) Aditus Consulting. All rights reserved.//========================================================================*/// Styles for gradient color fillDEFINE("GRAD_VER",1);DEFINE("GRAD_VERT",1);DEFINE("GRAD_HOR",2);DEFINE("GRAD_MIDHOR",3);DEFINE("GRAD_MIDVER",4);DEFINE("GRAD_CENTER",5);DEFINE("GRAD_WIDE_MIDVER",6);DEFINE("GRAD_WIDE_MIDHOR",7);DEFINE("GRAD_LEFT_REFLECTION",8);DEFINE("GRAD_RIGHT_REFLECTION",9);DEFINE("GRAD_RAISED_PANEL",10);DEFINE("GRAD_DIAGONAL",11);  //===================================================// CLASS Gradient// Description: Handles gradient fills. This is to be// considered a "friend" class of Class Image.//===================================================class Gradient {    private $img=null, $numcolors=100;//---------------// CONSTRUCTOR    function Gradient(&$img) {	$this->img = $img;    }    function SetNumColors($aNum) {	$this->numcolors=$aNum;    }//---------------// PUBLIC METHODS	    // Produce a gradient filled rectangle with a smooth transition between    // two colors.    // ($xl,$yt) 	Top left corner    // ($xr,$yb)	Bottom right    // $from_color	Starting color in gradient    // $to_color	End color in the gradient    // $style		Which way is the gradient oriented?    function FilledRectangle($xl,$yt,$xr,$yb,$from_color,$to_color,$style=1) {	switch( $style ) {		    case GRAD_VER:  		$steps = round(abs($xr-$xl));		$delta = $xr>=$xl ? 1 : -1;		$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);		for( $i=0, $x=$xl; $i < $steps; ++$i ) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yt,$x,$yb);		    $x += $delta;		}		break;	    case GRAD_HOR: 		$steps = round(abs($yb-$yt));		$delta = $yb>=$yt ? 1 : -1;		$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);		for($i=0,$y=$yt; $i < $steps; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}		break;	    case GRAD_MIDHOR: 		$steps = round(abs($yb-$yt)/2);		$delta = $yb >= $yt ? 1 : -1;		$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);		for($y=$yt, $i=0; $i < $steps;  ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}		--$i;		if( abs($yb-$yt) % 2 == 1 ) --$steps;		for($j=0; $j < $steps; ++$j, --$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}		$this->img->Line($xl,$y,$xr,$y);		break;	    case GRAD_MIDVER: 		$steps = round(abs($xr-$xl)/2);		$delta = $xr>=$xl ? 1 : -1;		$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);		for($x=$xl, $i=0; $i < $steps; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		--$i;		if( abs($xr-$xl) % 2 == 1 ) --$steps;		for($j=0; $j < $steps; ++$j, --$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		$this->img->Line($x,$yb,$x,$yt);				break;	    case GRAD_WIDE_MIDVER: 		$diff = round(abs($xr-$xl));		$steps = floor(abs($diff)/3);		$firststep = $diff - 2*$steps ; 		$delta = $xr >= $xl ? 1 : -1;		$this->GetColArray($from_color,$to_color,$firststep,$colors,$this->numcolors);		for($x=$xl, $i=0; $i < $firststep; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		--$i;		$this->img->current_color = $colors[$i];		for($j=0; $j< $steps; ++$j) {		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}				for($j=0; $j < $steps; ++$j, --$i) {		    $this->img->current_color = $colors[$i];						    $this->img->Line($x,$yb,$x,$yt);			    $x += $delta;		}						break;	    case GRAD_WIDE_MIDHOR:		$diff = round(abs($yb-$yt));		$steps = floor(abs($diff)/3);		$firststep = $diff - 2*$steps ; 		$delta = $yb >= $yt? 1 : -1;		$this->GetColArray($from_color,$to_color,$firststep,$colors,$this->numcolors);		for($y=$yt, $i=0; $i < $firststep;  ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}		--$i;		$this->img->current_color = $colors[$i];		for($j=0; $j < $steps; ++$j) {		    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}		for($j=0; $j < $steps; ++$j, --$i) {		    $this->img->current_color = $colors[$i];						    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}						break;	    	    case GRAD_LEFT_REFLECTION: 		$steps1 = round(0.3*abs($xr-$xl));		$delta = $xr>=$xl ? 1 : -1;				$from_color = $this->img->rgb->Color($from_color);		$adj = 1.4;		$m = ($adj-1.0)*(255-min(255,min($from_color[0],min($from_color[1],$from_color[2]))));		$from_color2 = array(min(255,$from_color[0]+$m), 				    min(255,$from_color[1]+$m), min(255,$from_color[2]+$m));				$this->GetColArray($from_color2,$to_color,$steps1,$colors,$this->numcolors);		$n = count($colors);		for($x=$xl, $i=0; $i < $steps1 && $i < $n; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		$steps2 = max(1,round(0.08*abs($xr-$xl)));		$this->img->SetColor($to_color);		for($j=0; $j< $steps2; ++$j) {		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		$steps = abs($xr-$xl)-$steps1-$steps2;		$this->GetColArray($to_color,$from_color,$steps,$colors,$this->numcolors);   		$n = count($colors);		for($i=0; $i < $steps && $i < $n; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		break;	    case GRAD_RIGHT_REFLECTION: 		$steps1 = round(0.7*abs($xr-$xl));		$delta = $xr>=$xl ? 1 : -1;		$this->GetColArray($from_color,$to_color,$steps1,$colors,$this->numcolors);		$n = count($colors);		for($x=$xl, $i=0; $i < $steps1 && $i < $n; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		$steps2 = max(1,round(0.08*abs($xr-$xl)));		$this->img->SetColor($to_color);		for($j=0; $j< $steps2; ++$j) {		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		$from_color = $this->img->rgb->Color($from_color);		$adj = 1.4;		$m = ($adj-1.0)*(255-min(255,min($from_color[0],min($from_color[1],$from_color[2]))));		$from_color = array(min(255,$from_color[0]+$m), 				    min(255,$from_color[1]+$m), min(255,$from_color[2]+$m));				$steps = abs($xr-$xl)-$steps1-$steps2;		$this->GetColArray($to_color,$from_color,$steps,$colors,$this->numcolors);   		$n = count($colors);		for($i=0; $i < $steps && $i < $n; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		break;	    case GRAD_CENTER: 		$steps = ceil(min(($yb-$yt)+1,($xr-$xl)+1)/2);			$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);		$dx = ($xr-$xl)/2;		$dy = ($yb-$yt)/2;		$x=$xl;$y=$yt;$x2=$xr;$y2=$yb;		$n = count($colors);		for($x=$xl, $i=0; $x < $xl+$dx && $y < $yt+$dy && $i < $n; ++$x, ++$y, --$x2, --$y2, ++$i) {		    $this->img->current_color = $colors[$i];					    $this->img->Rectangle($x,$y,$x2,$y2);		}		$this->img->Line($x,$y,$x2,$y2);		break;			    case GRAD_RAISED_PANEL:		// right to left 		$steps1 = $xr-$xl; 		$delta = $xr>=$xl ? 1 : -1; 		$this->GetColArray($to_color,$from_color,$steps1,$colors,$this->numcolors); 		$n = count($colors);		for($x=$xl, $i=0; $i < $steps1 && $i < $n; ++$i) { 		    $this->img->current_color = $colors[$i]; 		    $this->img->Line($x,$yb,$x,$yt); 		    $x += $delta; 		} 				// left to right 		$xr -= 3; 		$xl += 3; 		$yb -= 3; 		$yt += 3; 		$steps2 = $xr-$xl; 		$delta = $xr>=$xl ? 1 : -1; 		for($x=$xl, $j=$steps2; $j >= 0; --$j) { 		    $this->img->current_color = $colors[$j]; 		    $this->img->Line($x,$yb,$x,$yt); 		    $x += $delta; 		} 		break;	    case GRAD_DIAGONAL:		// use the longer dimension to determine the required number of steps.		// first loop draws from one corner to the mid-diagonal and the second		// loop draws from the mid-diagonal to the opposing corner.		if($xr-$xl > $yb - $yt) {		    // width is greater than height -> use x-dimension for steps		    $steps = $xr-$xl;		    $delta = $xr>=$xl ? 1 : -1;		    $this->GetColArray($from_color,$to_color,$steps*2,$colors,$this->numcolors);		    $n = count($colors);		    for($x=$xl, $i=0; $i < $steps && $i < $n; ++$i) {			$this->img->current_color = $colors[$i];			$y = $yt+($i/$steps)*($yb-$yt)*$delta;			$this->img->Line($x,$yt,$xl,$y);			$x += $delta;		    }		    for($x=$xl, $i = 0; $i < $steps && $i < $n; ++$i) {			$this->img->current_color = $colors[$steps+$i];			$y = $yt+($i/$steps)*($yb-$yt)*$delta;			$this->img->Line($x,$yb,$xr,$y);			$x += $delta;		    }		} else {		    // height is greater than width -> use y-dimension for steps		    $steps = $yb-$yt;		    $delta = $yb>=$yt ? 1 : -1;		    $this->GetColArray($from_color,$to_color,$steps*2,$colors,$this->numcolors);		    $n = count($colors);		    		    for($y=$yt, $i=0; $i < $steps && $i < $n; ++$i) {			$this->img->current_color = $colors[$i];			$x = $xl+($i/$steps)*($xr-$xl)*$delta;			$this->img->Line($x,$yt,$xl,$y);			$y += $delta;		    }		    for($y=$yt, $i = 0; $i < $steps && $i < $n; ++$i) {			$this->img->current_color = $colors[$steps+$i];			$x = $xl+($i/$steps)*($xr-$xl)*$delta;			$this->img->Line($x,$yb,$xr,$y);			$x += $delta;		    }		}		break;	    default:		JpGraphError::RaiseL(7001,$style);//("Unknown gradient style (=$style).");		break;	}    }    // Fill a special case of a polygon with a flat bottom    // with a gradient. Can be used for filled line plots.    // Please note that this is NOT a generic gradient polygon fill    // routine. It assumes that the bottom is flat (like a drawing    // of a mountain)    function FilledFlatPolygon($pts,$from_color,$to_color) {	if( count($pts) == 0 ) return;		$maxy=$pts[1];	$miny=$pts[1];			$n = count($pts) ;	for( $i=0, $idx=0; $i < $n; $i += 2) {	    $x = round($pts[$i]);	    $y = round($pts[$i+1]);	    $miny = min($miny,$y);	    $maxy = max($maxy,$y);	}	    	$colors = array();	$this->GetColArray($from_color,$to_color,abs($maxy-$miny)+1,$colors,$this->numcolors);	for($i=$miny, $idx=0; $i <= $maxy; ++$i ) {	    $colmap[$i] = $colors[$idx++]; 	}	$n = count($pts)/2 ;	$idx = 0 ;	while( $idx < $n-1 ) {	    $p1 = array(round($pts[$idx*2]),round($pts[$idx*2+1]));	    $p2 = array(round($pts[++$idx*2]),round($pts[$idx*2+1]));			    // Find the largest rectangle we can fill	    $y = max($p1[1],$p2[1]) ;	    for($yy=$maxy; $yy > $y; --$yy) {		$this->img->current_color = $colmap[$yy];		$this->img->Line($p1[0],$yy,$p2[0]-1,$yy);	    }	    	    if( $p1[1] == $p2[1] ) continue; 	    // Fill the rest using lines (slow...)	    $slope = ($p2[0]-$p1[0])/($p1[1]-$p2[1]);	    $x1 = $p1[0];	    $x2 = $p2[0]; //-1;	    $start = $y;	    if( $p1[1] > $p2[1] ) {		while( $y >= $p2[1] ) {		    $x1=$slope*($start-$y)+$p1[0];		    $this->img->current_color = $colmap[$y];		    $this->img->Line($x1,$y,$x2,$y);		    --$y;		} 	    }	    else {		while( $y >= $p1[1] ) {		    $x2=$p2[0]+$slope*($start-$y);		    $this->img->current_color = $colmap[$y];		    $this->img->Line($x1,$y,$x2,$y);		    --$y;		} 	    }	}    }//---------------// PRIVATE METHODS	    // Add to the image color map the necessary colors to do the transition    // between the two colors using $numcolors intermediate colors    function GetColArray($from_color,$to_color,$arr_size,&$colors,$numcols=100) {	if( $arr_size==0 ) return;	// If color is given as text get it's corresponding r,g,b values	$from_color = $this->img->rgb->Color($from_color);	$to_color = $this->img->rgb->Color($to_color);			$rdelta=($to_color[0]-$from_color[0])/$numcols;	$gdelta=($to_color[1]-$from_color[1])/$numcols;	$bdelta=($to_color[2]-$from_color[2])/$numcols;	$colorsperstep	= $numcols/$arr_size;	$prevcolnum	= -1;	$from_alpha = $from_color[3];	$to_alpha = $to_color[3];	$adelta = ( $to_alpha - $from_alpha ) / $numcols ;	for ($i=0; $i < $arr_size; ++$i) {	    $colnum = floor($colorsperstep*$i);	    if ( $colnum == $prevcolnum ) 		$colors[$i]	= $colidx;	    else {		$r = floor($from_color[0] + $colnum*$rdelta);		$g = floor($from_color[1] + $colnum*$gdelta);		$b = floor($from_color[2] + $colnum*$bdelta);		$alpha = $from_alpha + $colnum*$adelta;		$colidx = $this->img->rgb->Allocate(sprintf("#%02x%02x%02x",$r,$g,$b),$alpha);		$colors[$i] = $colidx;	    }	    $prevcolnum = $colnum;	}    }	} // Class?>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97久久精品人人爽人人爽蜜臀| 亚洲精品一区二区三区影院| 国产一区美女在线| 久久精品在线观看| caoporen国产精品视频| 成人性生交大片免费| 成人国产精品视频| 成人av电影在线网| 欧美在线免费观看亚洲| 日韩av高清在线观看| 麻豆91小视频| 国内久久精品视频| www.日韩av| 欧美午夜精品久久久久久超碰 | 日产精品久久久久久久性色| 亚洲高清在线视频| 麻豆国产一区二区| 成人一二三区视频| 在线精品视频一区二区| 久久99久久99| 亚洲伊人色欲综合网| 日韩国产高清影视| 国产成人综合精品三级| 91美女片黄在线观看91美女| 欧美日本视频在线| 在线视频国内一区二区| 欧美大片在线观看| 中文一区在线播放| 丝袜脚交一区二区| 亚洲午夜激情网站| 国产乱人伦精品一区二区在线观看| 一区二区在线看| 亚洲欧美一区二区在线观看| 性欧美大战久久久久久久久| 亚洲免费观看在线观看| 美女mm1313爽爽久久久蜜臀| www.色精品| 久久一区二区三区四区| 亚洲成人综合在线| 国产a久久麻豆| 欧美一区二区三区视频| 亚洲综合丁香婷婷六月香| 国产成人在线观看免费网站| 一本一本大道香蕉久在线精品 | 国产欧美日韩视频在线观看| 亚洲嫩草精品久久| 久久精品亚洲精品国产欧美| 国产精品一卡二| 亚洲国产精品99久久久久久久久| 亚洲综合男人的天堂| 欧美日韩国产影片| 日韩美女精品在线| 国产曰批免费观看久久久| 欧美性猛交xxxx黑人交| 青青青伊人色综合久久| 91精彩视频在线| 天堂久久一区二区三区| 久久美女艺术照精彩视频福利播放 | 久久婷婷国产综合国色天香| 激情成人午夜视频| 亚洲欧美一区二区三区极速播放| 国产99精品在线观看| 亚洲日本青草视频在线怡红院| 粉嫩13p一区二区三区| 日韩三级中文字幕| 成人av网站在线观看免费| 亚洲福利一区二区| 欧美在线你懂得| 国模冰冰炮一区二区| 亚洲少妇30p| 日韩一区二区三区高清免费看看| 午夜精品久久久久久久| 久久精品国产免费看久久精品| 欧美影院一区二区三区| 日本不卡1234视频| 亚洲乱码国产乱码精品精小说| 99精品视频在线播放观看| 日本欧美肥老太交大片| 国产精品大尺度| 欧美变态口味重另类| 欧美性猛交xxxx黑人交| 懂色av中文字幕一区二区三区 | 日韩欧美国产高清| 日本高清视频一区二区| 亚洲色图制服诱惑| 久久这里只有精品视频网| 欧美天堂亚洲电影院在线播放| 亚洲国产日韩综合久久精品| 国产午夜精品福利| 欧美一区二区三区四区在线观看| 六月丁香婷婷久久| 五月婷婷综合在线| 自拍偷拍亚洲欧美日韩| 久久久国产精品麻豆| 9久草视频在线视频精品| 毛片av一区二区三区| 亚洲第一搞黄网站| 久久蜜桃香蕉精品一区二区三区| 国产成人精品aa毛片| 美腿丝袜在线亚洲一区| 首页综合国产亚洲丝袜| 樱桃国产成人精品视频| 亚洲欧美日韩一区二区| 中文字幕一区二区三区色视频| 欧美亚洲综合在线| 91国偷自产一区二区使用方法| 日韩中文字幕91| 丝袜美腿亚洲色图| 国产精品全国免费观看高清 | 99精品国产视频| 婷婷开心久久网| 亚洲一区av在线| 26uuu精品一区二区三区四区在线| 99国产精品99久久久久久| 国产成人精品一区二| 国产成人在线视频网址| 国产乱码一区二区三区| 国产老妇另类xxxxx| 粉嫩欧美一区二区三区高清影视 | 亚洲国产精品激情在线观看 | 成人av综合在线| 成人小视频免费在线观看| 国产iv一区二区三区| 成人在线综合网站| 91麻豆免费在线观看| 日本高清免费不卡视频| 国产揄拍国内精品对白| 国产成人自拍高清视频在线免费播放| 亚洲国产精品久久久久秋霞影院| 精品成人在线观看| 国产欧美精品一区二区色综合| 欧美日韩精品一区二区三区蜜桃| 高清在线观看日韩| 99riav久久精品riav| 欧美三区在线视频| 久久综合九色综合97婷婷| 国产日韩精品一区二区三区在线| 欧美一区二区久久| 久久精品亚洲乱码伦伦中文 | 欧美午夜精品一区| 日韩精品资源二区在线| 国产精品日韩成人| 性做久久久久久久久| 国产精品一区专区| 91九色最新地址| 91在线观看视频| 欧美一区二区三区影视| 欧美另类变人与禽xxxxx| 久久嫩草精品久久久精品| 精品久久一区二区| 日韩一区有码在线| 久久99精品国产麻豆婷婷 | 精品国精品国产尤物美女| 国产色一区二区| 久久久噜噜噜久噜久久综合| 日韩欧美国产成人一区二区| 国产精品欧美综合在线| 日韩中文字幕区一区有砖一区| 亚洲v精品v日韩v欧美v专区| 国产在线精品一区在线观看麻豆| 日韩精品高清不卡| 91视频.com| 久久一区二区三区四区| 国产亚洲一二三区| 天天操天天干天天综合网| 午夜一区二区三区视频| 成人a免费在线看| 欧美v日韩v国产v| 日日摸夜夜添夜夜添亚洲女人| 日本欧美大码aⅴ在线播放| 97久久精品人人做人人爽50路| 91免费在线看| 国产午夜精品福利| 精品一区二区三区在线播放| 久久99久久久欧美国产| 久久99国产精品麻豆| 欧美性高清videossexo| 日韩免费观看高清完整版| 久久先锋影音av鲁色资源网| 日韩专区一卡二卡| 在线亚洲欧美专区二区| 中文字幕亚洲区| 成人免费视频视频在线观看免费| 95精品视频在线| 91精品国产综合久久久蜜臀粉嫩| 欧美一区二视频| 午夜精品福利在线| 欧美理论片在线| 五月婷婷色综合| 国产成人av电影| 久久只精品国产| 国产精一区二区三区| 日韩欧美一级二级三级 | www.久久精品| 欧美激情艳妇裸体舞| 亚洲成a人片在线不卡一二三区| 裸体歌舞表演一区二区| 日韩午夜激情免费电影| 国产精品免费av| 99精品视频在线播放观看|