位置: 編程技術 - 正文
推薦整理分享PHP:imagesetinterpolation()的用法_GD庫圖像處理函數(shù),希望有所幫助,僅作參考,歡迎閱讀內容。
文章相關熱門搜索詞:,內容如對您有幫助,希望把文章鏈接給更多的朋友!
(PHP 5 >= 5.5.0)
imagesetinterpolation — Set the interpolation method
說明 bool imagesetinterpolation ( resource $image [, int $method = IMG_BILINEAR_FIXED ] )Sets the interpolation method, setting an interpolation method affects the rendering of various functions in GD, such as the imagerotate() function.
參數(shù)image
由圖象創(chuàng)建函數(shù)(例如imagecreatetruecolor())返回的圖象資源。
methodThe interpolation method, which can be one of the following: IMG_BELL: Bell filter. IMG_BESSEL: Bessel filter. IMG_BICUBIC: Bicubic interpolation. IMG_BICUBIC_FIXED: Fixed point implementation of the bicubic interpolation. IMG_BILINEAR_FIXED: Fixed point implementation of the bilinear interpolation (default (also on image creation)). IMG_BLACKMAN: Blackman window function. IMG_BOX: Box blur filter. IMG_BSPLINE: Spline interpolation. IMG_CATMULLROM: Cubic Hermite spline interpolation. IMG_GAUSSIAN: Gaussian function. IMG_GENERALIZED_CUBIC: Generalized cubic spline fractal interpolation. IMG_HERMITE: Hermite interpolation. IMG_HAMMING: Hamming filter. IMG_HANNING: Hanning filter. IMG_MITCHELL: Mitchell filter. IMG_POWER: Power interpolation. IMG_QUADRATIC: Inverse quadratic interpolation. IMG_SINC: Sinc function. IMG_NEAREST_NEIGHBOUR: Nearest neighbour interpolation. IMG_WEIGHTED4: Weighting filter. IMG_TRIANGLE: Triangle interpolation.
返回值成功時返回 TRUE, 或者在失敗時返回 FALSE。
范例
Example #1 imagesetinterpolation() example
<?php//Loadanimage$im=imagecreate(,);//BydefaultinterpolationisIMG_BILINEAR_FIXED,switch//tousethe'Mitchell'filter:imagesetinterpolation($im,IMG_MITCHELL);//Continuetoworkwith$im...?> 注釋Changing the interpolation method affects the following functions when rendering: imageaffine() imagerotate() imagescale()
PHP:imagerotate()的用法_GD庫圖像處理函數(shù) imagerotate(PHP4=4.3.0,PHP5)imagerotate用給定角度旋轉圖像說明resourceimagerotate(resource$image,float$angle,int$bgd_color[,int$ignore_transparent=0])將src_im圖像用給定的angle角度
PHP:imagescale()的用法_GD庫圖像處理函數(shù) imagescale(PHP5=5.5.0)imagescaleScaleanimageusingthegivennewwidthandheight說明resourceimagescale(resource$image,int$new_width[,int$new_height=-1[,int$mode=IMG_BILINEAR_FIXED]])Warning本函數(shù)還未
PHP:imagesetbrush()的用法_GD庫圖像處理函數(shù) imagesetbrush(PHP5=5.5.0)imagesetbrush設定畫線用的畫筆圖像說明boolimagesetbrush(resource$image,resource$brush)當用特殊的顏色IMG_COLOR_BRUSHED或IMG_COLOR_STYLEDBRUSHED繪畫時,im
標簽: PHP:imagesetinterpolation()的用法_GD庫圖像處理函數(shù)
本文鏈接地址:http://jsrtzm.cn/biancheng/284751.html 轉載請保留說明!網(wǎng)站地圖: 企業(yè)信息 工商信息 財稅知識 網(wǎng)絡常識 編程技術
友情鏈接: 武漢網(wǎng)站建設