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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? jpgraph_pie.php

?? asterisk用 的voip記費(fèi)軟件
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
	}	// Adjust title position	if( $aaoption !== 1 ) {	    $this->title->Pos($xc,			  $yc-$this->title->GetFontHeight($img)-$radius-$this->title->margin,			  "center","bottom");	    $this->title->Stroke($img);	}    }//---------------// PRIVATE METHODS	    function StrokeAllLabels($img,$xc,$yc,$radius) {	$n = count($this->labels);	for($i=0; $i < $n; ++$i) {	    $this->StrokeLabel($this->labels[$i],$img,$xc,$yc,			       $this->la[$i],			       $radius + $this->explode_radius[$n-$i-1]); 	}    }    // Position the labels of each slice    function StrokeLabel($label,$img,$xc,$yc,$a,$r) {	// Default value	if( $this->ilabelposadj === 'auto' )	    $this->ilabelposadj = 0.65;	// We position the values diferently depending on if they are inside	// or outside the pie	if( $this->ilabelposadj < 1.0 ) {	    $this->value->SetAlign('center','center');	    $this->value->margin = 0;	    	    $xt=round($this->ilabelposadj*$r*cos($a)+$xc);	    $yt=round($yc-$this->ilabelposadj*$r*sin($a));	    	    $this->value->Stroke($img,$label,$xt,$yt);	}	else {	    $this->value->halign = "left";	    $this->value->valign = "top";	    	    // Position the axis title. 	    // dx, dy is the offset from the top left corner of the bounding box that sorrounds the text	    // that intersects with the extension of the corresponding axis. The code looks a little	    // bit messy but this is really the only way of having a reasonable position of the	    // axis titles.	    $img->SetFont($this->value->ff,$this->value->fs,$this->value->fsize);	    $h=$img->GetTextHeight($label);	    // For numeric values the format of the display value	    // must be taken into account	    if( is_numeric($label) ) {		if( $label > 0 )		    $w=$img->GetTextWidth(sprintf($this->value->format,$label));		else		    $w=$img->GetTextWidth(sprintf($this->value->negformat,$label));	    }	    else		$w=$img->GetTextWidth($label);	    if( $this->ilabelposadj > 1.0 && $this->ilabelposadj < 5.0) {		$r *= $this->ilabelposadj;	    }	    $r += $img->GetFontHeight()/1.5 + $this->value->margin ;	    $xt=round($r*cos($a)+$xc);	    $yt=round($yc-$r*sin($a));	    while( $a < 0 ) $a += 2*M_PI;	    while( $a > 2*M_PI ) $a -= 2*M_PI;	    if( $a>=7*M_PI/4 || $a <= M_PI/4 ) $dx=0;	    if( $a>=M_PI/4 && $a <= 3*M_PI/4 ) $dx=($a-M_PI/4)*2/M_PI; 	    if( $a>=3*M_PI/4 && $a <= 5*M_PI/4 ) $dx=1;	    if( $a>=5*M_PI/4 && $a <= 7*M_PI/4 ) $dx=(1-($a-M_PI*5/4)*2/M_PI);	    	    if( $a>=7*M_PI/4 ) $dy=(($a-M_PI)-3*M_PI/4)*2/M_PI;	    if( $a<=M_PI/4 ) $dy=(1-$a*2/M_PI);	    if( $a>=M_PI/4 && $a <= 3*M_PI/4 ) $dy=1;	    if( $a>=3*M_PI/4 && $a <= 5*M_PI/4 ) $dy=(1-($a-3*M_PI/4)*2/M_PI);	    if( $a>=5*M_PI/4 && $a <= 7*M_PI/4 ) $dy=0;	    	    $oldmargin = $this->value->margin ;	    $this->value->margin = 0;	    $this->value->Stroke($img,$label,$xt-$dx*$w,$yt-$dy*$h);	    $this->value->margin = $oldmargin ;	}    }	} // Class//===================================================// CLASS PiePlotC// Description: Same as a normal pie plot but with a // filled circle in the center//===================================================class PiePlotC extends PiePlot {    var $imidsize=0.5;		// Fraction of total width    var $imidcolor='white';    var $midtitle='';    var $middlecsimtarget="",$middlecsimalt="";    function PiePlotC($data,$aCenterTitle='') {	parent::PiePlot($data);	$this->midtitle = new Text();	$this->midtitle->ParagraphAlign('center');    }    function SetMid($aTitle,$aColor='white',$aSize=0.5) {	$this->midtitle->Set($aTitle);	$this->imidsize = $aSize ; 	$this->imidcolor = $aColor ;     }    function SetMidTitle($aTitle) {	$this->midtitle->Set($aTitle);    }    function SetMidSize($aSize) {	$this->imidsize = $aSize ;     }    function SetMidColor($aColor) {	$this->imidcolor = $aColor ;     }    function SetMidCSIM($aTarget,$aAlt) {	$this->middlecsimtarget = $aTarget;	$this->middlecsimalt = $aAlt;    }    function AddSliceToCSIM($i,$xc,$yc,$radius,$sa,$ea) {          //Slice number, ellipse centre (x,y), radius, start angle, end angle	while( $sa > 2*M_PI ) $sa = $sa - 2*M_PI;	while( $ea > 2*M_PI ) $ea = $ea - 2*M_PI;	$sa = 2*M_PI - $sa;	$ea = 2*M_PI - $ea;	// Add inner circle first point	$xp = floor(($this->imidsize*$radius*cos($ea))+$xc);	$yp = floor($yc-($this->imidsize*$radius*sin($ea)));	$coords = "$xp, $yp";		//add coordinates every 0.25 radians	$a=$ea+0.25;	while ($a < $sa) {	    $xp = floor(($this->imidsize*$radius*cos($a)+$xc));	    $yp = floor($yc-($this->imidsize*$radius*sin($a)));	    $coords.= ", $xp, $yp";	    $a += 0.25;	}	// Make sure we end at the last point	$xp = floor(($this->imidsize*$radius*cos($sa)+$xc));	$yp = floor($yc-($this->imidsize*$radius*sin($sa)));	$coords.= ", $xp, $yp";	// Straight line to outer circle	$xp = floor($radius*cos($sa)+$xc);	$yp = floor($yc-$radius*sin($sa));	$coords.= ", $xp, $yp";		//add coordinates every 0.25 radians	$a=$sa - 0.25;	while ($a > $ea) {	    $xp = floor($radius*cos($a)+$xc);	    $yp = floor($yc-$radius*sin($a));	    $coords.= ", $xp, $yp";	    $a -= 0.25;	}			//Add the last point on the arc	$xp = floor($radius*cos($ea)+$xc);	$yp = floor($yc-$radius*sin($ea));	$coords.= ", $xp, $yp";	// Close the arc	$xp = floor(($this->imidsize*$radius*cos($ea))+$xc);	$yp = floor($yc-($this->imidsize*$radius*sin($ea)));	$coords .= ", $xp, $yp";	if( !empty($this->csimtargets[$i]) ) {	    $this->csimareas .= "<area shape=\"poly\" coords=\"$coords\" href=\"".		$this->csimtargets[$i]."\"";	    if( !empty($this->csimalts[$i]) ) {		$tmp=sprintf($this->csimalts[$i],$this->data[$i]);		$this->csimareas .= " alt=\"$tmp\" title=\"$tmp\"";	    }	    $this->csimareas .= ">\n";	}    }    function Stroke($img,$aaoption=0) {	// Stroke the pie but don't stroke values	$tmp =  $this->value->show;	$this->value->show = false;	parent::Stroke($img,$aaoption);	$this->value->show = $tmp; 	$xc = round($this->posx*$img->width);	$yc = round($this->posy*$img->height);	$radius = floor($this->radius * min($img->width,$img->height)) ;	if( $this->imidsize > 0 && $aaoption !== 2 ) {	    if( $this->ishadowcolor != "" ) {		$img->SetColor($this->ishadowcolor);		$img->FilledCircle($xc+$this->ishadowdrop,$yc+$this->ishadowdrop,				   round($radius*$this->imidsize));	    }	    $img->SetColor($this->imidcolor);	    $img->FilledCircle($xc,$yc,round($radius*$this->imidsize));	    if(  $this->pie_border && $aaoption === 0 ) {		$img->SetColor($this->color);		$img->Circle($xc,$yc,round($radius*$this->imidsize));	    }	    if( !empty($this->middlecsimtarget) )		$this->AddMiddleCSIM($xc,$yc,round($radius*$this->imidsize));	}	if( $this->value->show && $aaoption !== 1) {	    $this->StrokeAllLabels($img,$xc,$yc,$radius);	    $this->midtitle->Pos($xc,$yc,'center','center');	    $this->midtitle->Stroke($img);	}    }    function AddMiddleCSIM($xc,$yc,$r) {	$this->csimareas .= "<area shape=\"circle\" coords=\"$xc,$yc,$r\" href=\"".	    $this->middlecsimtarget."\"";	if( !empty($this->middlecsimalt) ) {	    $tmp = $this->middlecsimalt;	    $this->csimareas .= " alt=\"$tmp\" title=\"$tmp\"";	}	$this->csimareas .= ">\n";    }    function StrokeLabel($label,$img,$xc,$yc,$a,$r) {	if( $this->ilabelposadj === 'auto' )	    $this->ilabelposadj = (1-$this->imidsize)/2+$this->imidsize;	parent::StrokeLabel($label,$img,$xc,$yc,$a,$r);    }}//===================================================// CLASS PieGraph// Description: //===================================================class PieGraph extends Graph {    var $posx, $posy, $radius;		    var $legends=array();	    var $plots=array();    var $pieaa = false ;//---------------// CONSTRUCTOR    function PieGraph($width=300,$height=200,$cachedName="",$timeout=0,$inline=1) {	$this->Graph($width,$height,$cachedName,$timeout,$inline);	$this->posx=$width/2;	$this->posy=$height/2;	$this->SetColor(array(255,255,255));		    }//---------------// PUBLIC METHODS	    function Add($aObj) {	if( is_array($aObj) && count($aObj) > 0 )	    $cl = strtolower(get_class($aObj[0]));	else	    $cl = strtolower(get_class($aObj));	if( $cl == 'text' ) 	    $this->AddText($aObj);	elseif( $cl == 'iconplot' ) 	    $this->AddIcon($aObj);	else {	    if( is_array($aObj) ) {		$n = count($aObj);		for($i=0; $i < $n; ++$i ) {		    $this->plots[] = &$aObj[$i];		}	    }	    else {		$this->plots[] = $aObj;	    }	}    }    function SetAntiAliasing($aFlg=true) {	$this->pieaa = $aFlg;    }	    function SetColor($c) {	$this->SetMarginColor($c);    }    function DisplayCSIMAreas() {	    $csim="";	    foreach($this->plots as $p ) {		$csim .= $p->GetCSIMareas();	    }	    //$csim.= $this->legend->GetCSIMareas();	    if (preg_match_all("/area shape=\"(\w+)\" coords=\"([0-9\, ]+)\"/", $csim, $coords)) {		$this->img->SetColor($this->csimcolor);		for ($i=0; $i<count($coords[0]); $i++) {		    if ($coords[1][$i]=="poly") {			preg_match_all('/\s*([0-9]+)\s*,\s*([0-9]+)\s*,*/',$coords[2][$i],$pts);			$this->img->SetStartPoint($pts[1][count($pts[0])-1],$pts[2][count($pts[0])-1]);			for ($j=0; $j<count($pts[0]); $j++) {			    $this->img->LineTo($pts[1][$j],$pts[2][$j]);			}		    } else if ($coords[1][$i]=="rect") {			$pts = preg_split('/,/', $coords[2][$i]);			$this->img->SetStartPoint($pts[0],$pts[1]);			$this->img->LineTo($pts[2],$pts[1]);			$this->img->LineTo($pts[2],$pts[3]);			$this->img->LineTo($pts[0],$pts[3]);			$this->img->LineTo($pts[0],$pts[1]);								    }		}	    }    }    // Method description    function Stroke($aStrokeFileName="") {	// If the filename is the predefined value = '_csim_special_'	// we assume that the call to stroke only needs to do enough	// to correctly generate the CSIM maps.	// We use this variable to skip things we don't strictly need	// to do to generate the image map to improve performance	// a best we can. Therefor you will see a lot of tests !$_csim in the	// code below.	$_csim = ($aStrokeFileName===_CSIM_SPECIALFILE);	// We need to know if we have stroked the plot in the	// GetCSIMareas. Otherwise the CSIM hasn't been generated	// and in the case of GetCSIM called before stroke to generate	// CSIM without storing an image to disk GetCSIM must call Stroke.	$this->iHasStroked = true;	$n = count($this->plots);	if( $this->pieaa ) {	    if( !$_csim ) {		if( $this->background_image != "" ) {		    $this->StrokeFrameBackground();				}		else {		    $this->StrokeFrame();				}	    }	    $w = $this->img->width;	    $h = $this->img->height;	    $oldimg = $this->img->img;	    $this->img->CreateImgCanvas(2*$w,2*$h);	    	    $this->img->SetColor( $this->margin_color );	    $this->img->FilledRectangle(0,0,2*$w-1,2*$h-1);	    // Make all icons *2 i size since we will be scaling down the	    // imahe to do the anti aliasing	    $ni = count($this->iIcons);	    for($i=0; $i < $ni; ++$i) {		$this->iIcons[$i]->iScale *= 2 ;	    }	    $this->StrokeIcons();	    for($i=0; $i < $n; ++$i) {		if( $this->plots[$i]->posx > 1 ) 		    $this->plots[$i]->posx *= 2 ;		if( $this->plots[$i]->posy > 1 ) 		    $this->plots[$i]->posy *= 2 ;		$this->plots[$i]->Stroke($this->img,1);		if( $this->plots[$i]->posx > 1 ) 		    $this->plots[$i]->posx /= 2 ;		if( $this->plots[$i]->posy > 1 ) 		    $this->plots[$i]->posy /= 2 ;	    }	    $indent = $this->doframe ? ($this->frame_weight + ($this->doshadow ? $this->shadow_width : 0 )) : 0 ;	    $indent += $this->framebevel ? $this->framebeveldepth + 1 : 0 ;	    $this->img->CopyCanvasH($oldimg,$this->img->img,$indent,$indent,$indent,$indent,				    $w-2*$indent,$h-2*$indent,2*($w-$indent),2*($h-$indent));	    $this->img->img = $oldimg ;	    $this->img->width = $w ;	    $this->img->height = $h ;	    for($i=0; $i < $n; ++$i) {		$this->plots[$i]->Stroke($this->img,2); // Stroke labels		$this->plots[$i]->Legend($this);	    }	}	else {	    if( !$_csim ) {		if( $this->background_image != "" ) {		    $this->StrokeFrameBackground();				}		else {		    $this->StrokeFrame();				}	    }	    $this->StrokeIcons();	    for($i=0; $i < $n; ++$i) {		$this->plots[$i]->Stroke($this->img);		$this->plots[$i]->Legend($this);	    }	}	$this->legend->Stroke($this->img);	$this->footer->Stroke($this->img);	$this->StrokeTitles();	// Stroke texts	if( $this->texts != null ) {	    $n = count($this->texts);	    for($i=0; $i < $n; ++$i ) {		$this->texts[$i]->Stroke($this->img);	    }	}	if( !$_csim ) {		    if( _JPG_DEBUG ) {		$this->DisplayCSIMAreas();	    }	    // Should we do any final image transformation	    if( $this->iImgTrans ) {		if( !class_exists('ImgTrans') ) {		    require_once('jpgraph_imgtrans.php');		    //JpGraphError::Raise('In order to use image transformation you must include the file jpgraph_imgtrans.php in your script.');		}	       		$tform = new ImgTrans($this->img->img);		$this->img->img = $tform->Skew3D($this->iImgTransHorizon,$this->iImgTransSkewDist,						 $this->iImgTransDirection,$this->iImgTransHighQ,						 $this->iImgTransMinSize,$this->iImgTransFillColor,						 $this->iImgTransBorder);	    }	    // If the filename is given as the special "__handle"	    // then the image handler is returned and the image is NOT	    // streamed back	    if( $aStrokeFileName == _IMG_HANDLER ) {		return $this->img->img;	    }	    else {		// Finally stream the generated picture							$this->cache->PutAndStream($this->img,$this->cache_name,$this->inline,					   $aStrokeFileName);			    }	}    }} // Class/* EOF */?>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区三区四区不卡| 奇米精品一区二区三区四区| 国产欧美日韩麻豆91| 日韩欧美激情在线| 日韩三级高清在线| 日韩欧美亚洲国产精品字幕久久久| 欧美日韩一二三| 欧美日韩精品一区二区天天拍小说 | 首页亚洲欧美制服丝腿| 亚洲一区二区三区不卡国产欧美| 一区二区三区日韩欧美精品 | 日韩精品免费视频人成| 亚洲成人av电影在线| 日韩中文字幕亚洲一区二区va在线 | 五月开心婷婷久久| 日韩精品国产欧美| 六月婷婷色综合| 国产一区二区在线看| 国产激情视频一区二区三区欧美 | 色悠悠久久综合| 欧美性视频一区二区三区| 欧美性大战xxxxx久久久| 欧美日韩视频专区在线播放| 日韩一区二区免费在线电影| 久久久亚洲综合| 亚洲视频一区二区在线| 亚洲大片精品永久免费| 蜜臀av一级做a爰片久久| 国产一区二区看久久| 成人精品一区二区三区中文字幕| 日本精品一区二区三区四区的功能| 欧美影视一区在线| 日韩欧美一二三四区| 国产精品毛片久久久久久| 一区二区久久久| 久久99精品久久久久久| 懂色av中文字幕一区二区三区| 色综合久久中文字幕| 91精品国产综合久久精品性色 | 开心九九激情九九欧美日韩精美视频电影| 精品一区二区三区免费视频| 99久久综合精品| 欧美一区二区三区四区在线观看| 久久久久99精品一区| 亚洲一区日韩精品中文字幕| 九九视频精品免费| 91在线porny国产在线看| 91精品国产综合久久婷婷香蕉| 日本一区二区在线不卡| 一区二区三区电影在线播| 精品影院一区二区久久久| 色婷婷精品久久二区二区蜜臂av| 精品日韩在线观看| 一区二区三区电影在线播| 亚洲不卡av一区二区三区| 日韩电影在线观看一区| 国产一区二区三区最好精华液| 91在线精品一区二区| 337p亚洲精品色噜噜噜| 亚洲欧洲精品一区二区三区| 美美哒免费高清在线观看视频一区二区| 成人精品国产福利| 日韩免费视频一区| 一区二区视频在线看| 黑人巨大精品欧美一区| 欧美色综合网站| 国产欧美日韩精品a在线观看| 午夜欧美在线一二页| 97精品久久久久中文字幕| 精品国产一区二区三区不卡| 亚洲综合另类小说| 国产真实乱对白精彩久久| 91社区在线播放| 久久久久一区二区三区四区| 日韩精品电影一区亚洲| 91免费在线看| 中文字幕乱码一区二区免费| 久久aⅴ国产欧美74aaa| 欧美日韩在线三级| 国产欧美日韩精品a在线观看| 麻豆视频观看网址久久| 精品婷婷伊人一区三区三| 中文字幕av一区二区三区| 国内精品第一页| 在线观看视频一区二区欧美日韩| 亚洲欧洲精品一区二区三区| 国产福利电影一区二区三区| 精品国产一区二区三区av性色| 日韩精品亚洲一区| 在线亚洲一区观看| 亚洲品质自拍视频| av午夜一区麻豆| 中文字幕欧美日韩一区| 国产一区在线精品| 欧美videos大乳护士334| 视频一区欧美日韩| 欧美乱熟臀69xxxxxx| 一区二区在线观看免费视频播放| 91在线视频播放| 国产精品成人免费精品自在线观看| 国产精品一级在线| 久久精品视频免费观看| 国内精品视频666| 精品理论电影在线观看| 狠狠色丁香九九婷婷综合五月| 91精品国产综合久久婷婷香蕉| 日韩电影在线免费看| 日韩亚洲欧美成人一区| 久草精品在线观看| 久久先锋影音av鲁色资源网| 精品一区免费av| 久久久久久久久久久电影| 国产伦精品一区二区三区视频青涩| 精品国产乱码久久久久久免费| 理论电影国产精品| 久久亚洲二区三区| 成人精品在线视频观看| 亚洲人成网站色在线观看| 欧美中文一区二区三区| 亚洲高清不卡在线| 91精品中文字幕一区二区三区| 麻豆freexxxx性91精品| 久久亚洲一级片| av不卡免费电影| 亚洲免费av网站| 欧美日韩高清一区二区三区| 免费成人小视频| 久久婷婷综合激情| youjizz久久| 亚洲成人你懂的| 日韩精品一区在线| 不卡的av电影在线观看| 亚洲午夜成aⅴ人片| 欧美一区二区啪啪| 粉嫩av一区二区三区粉嫩| 亚洲乱码中文字幕| 欧美一区二区三区免费观看视频| 国产一区二区福利| 日韩一区日韩二区| 欧美日韩一区精品| 国产乱子轮精品视频| 1024成人网色www| 欧美一区二区三区在线电影| 成人性生交大合| 亚洲电影中文字幕在线观看| 精品1区2区在线观看| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 91久久久免费一区二区| 男男gaygay亚洲| 欧美国产激情一区二区三区蜜月| 欧美午夜电影网| 国产精品系列在线观看| 亚洲伊人色欲综合网| 国产日韩欧美一区二区三区综合| 欧美日韩在线亚洲一区蜜芽| 国产成人午夜精品影院观看视频 | 国产欧美日韩麻豆91| 色婷婷综合视频在线观看| 免费高清成人在线| 亚洲精品中文在线观看| 精品国产免费人成在线观看| 色综合婷婷久久| 国产一区二区三区四区在线观看| 亚洲一区二区精品久久av| 欧美国产在线观看| 欧美一区二区在线不卡| 91网站在线播放| 国产成人亚洲综合a∨猫咪| 日本在线不卡视频| 亚洲欧美日韩国产成人精品影院| 精品国产乱码久久久久久1区2区| 欧美色图一区二区三区| 波多野结衣中文字幕一区| 麻豆高清免费国产一区| 亚洲一二三区视频在线观看| 国产精品福利一区二区| 久久影视一区二区| 日韩午夜激情av| 欧美精品丝袜中出| 91网站在线观看视频| 国产成人精品免费| 狠狠色综合播放一区二区| 五月天中文字幕一区二区| 亚洲麻豆国产自偷在线| 日本一二三不卡| 26uuu欧美| 精品国产乱码久久久久久久久| 欧美日韩高清不卡| 欧美午夜电影一区| 色8久久人人97超碰香蕉987| 99久久精品免费精品国产| 国产成人aaaa| 国产精品996| 国产美女在线观看一区| 精品一区二区免费看| 久久99国产精品久久99| 蜜桃传媒麻豆第一区在线观看| 日本伊人午夜精品| 日韩av成人高清| 日本欧美一区二区三区|