站長資訊網
最全最豐富的資訊網站

PHP的GD庫函數一覽

PHP的GD庫函數一覽

GetImageSize

作用:取得圖片的大小[即長與寬]

用法:array GetImageSize(string filename, array [imageinfo]);

ImageArc

作用:畫弧線

用法:int ImageArc(int im, int cx, int cy, int w, int h, int s, int e, int col);

ImageChar

作用:寫出橫向字符

用法:int ImageChar(int im, int font, int x, int y, string c, int col);

ImageCharUp

作用:寫出豎式字符

用法:int ImageCharup(int im, int font, int x, int y, string c, int col);

ImageColorAllocate

作用:匹配顏色

用法:int ImageColorAllocate(int im, int red, int green, int blue);

ImageColorTransparent

作用:指定透明背景色

用法:int ImageColorTransparent(int im, int [col]);

ImageCopyResized

作用:復制新圖并調整大小

用法:int ImageCopyResized(int dst_im, int src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int d** srcW, int srcH);

ImageCreate

作用:建立新圖

用法:int ImageCreate(int x_size, int y_size);

ImageDashedLine

作用:繪虛線

用法:int ImageDashedLine(int im, int x1, int y1, int x2, int y2, int col);

ImageDestroy

作用:結束圖形

用法解釋:int ImageDestroy(int im);

ImageFill

作用:圖形著色

用法:int ImageFill(int im, int x, int y, int col);

ImageFilledPolygon

作用:多邊形區域著色

用法:int ImageFilledPolygon(int im, array points, int num_points, int col);

ImageFilledRectangle

作用:矩形區域著色

用法:int ImageFilledRectangle(int im, int x1, int y1, int x2, int y2, int col);

ImageFillToBorder

作用:指定顏色區域內著色

用法:int ImageFillToBorder(int im, int x, int y, int border, int col);

ImageFontHeight

作用:取得字型的高度

用法:int ImageFontHeight(int font);

ImageFontWidth

作用:取得字型的寬度

用法:int ImageFontWidth(int font);

ImageInterlace

作用:使用交錯式顯示與否

用法:int ImageInterlace(int im, int [interlace]);

ImageLine

作用:繪實線

用法:int ImageLine(int im, int x1, int y1, int x2, int y2, int col);

ImageLoadFont

作用:載入點陣字型

用法:int ImageLoadFont(string file);

ImagePolygon

作用:繪多邊形

用法:int ImagePolygon(int im, array points, int num_points, int col);

ImageRectangle

作用:繪矩形

用法:int ImageRectangle(int im, int x1, int y1, int x2, int y2, int col);

ImageSetPixel

作用:繪點

用法:int ImageSetPixel(int im, int x, int y, int col);

ImageString

作用:繪橫式字符串

用法:int ImageString(int im, int font, int x, int y, string s, int col);

ImageStringUp

作用:繪直式字符串

用法:int ImageStringUp(int im, int font, int x, int y, string s, int col);

ImageSX

作用:取得圖片的寬度

用法:int ImageSX(int im);

ImageSY

作用:取得圖片的高度

用法:int ImageSY(int im);

ImageTTFBBox

作用:計算 TTF 文字所占區域

用法:array ImageTTFBBox(int size, int angle, string fontfile, string text);

ImageTTFText

作用:寫 TTF 文字到圖中

用法:array ImageTTFText(int im, int size, int angle, int x, int y, int col, string fontfile, string text);

ImageColorAt

作用:取得圖中指定點顏色的索引值

用法:int ImageColorAt(int im, int x, int y);

ImageColorClosest

作用:計算色表中與指定顏色最接近者

用法:int ImageColorClosest(int im, int red, int green, int blue);

ImageColorExact

作用:計算色表上指定顏色索引值

用法:int ImageColorExact(int im, int red, int green, int blue);

ImageColorResolve

作用:計算色表上指定或最接近顏色的索引值

用法:int ImageColorResolve(int im, int red, int green, int blue);

ImageColorSet

作用:設定色表上指定索引的顏色

用法:boolean ImageColorSet(int im, int index, int red, int green, int blue);

ImageColorsForIndex

作用:取得色表上指定索引的顏色

用法:array ImageColorsForIndex(int im, int index);

ImageColorsTotal

作用:計算圖的顏色數

用法:int ImageColorsTotal(int im);

ImagePSLoadFont

作用:載入 Posts.c.r.i.p.t 字型

用法:int ImagePSLoadFont(string filename);

ImagePSFreeFont

作用:卸下 Posts.c.r.i.p.t 字型

用法:void ImagePSFreeFont(int fontindex);

ImagePSEncodeFont

作用:Posts.c.r.i.p.t 字型轉成向量字

用法:int ImagePSEncodeFont(string encodingfile);

ImagePSText

作用:寫 Posts.c.r.i.p.t 文字到圖中

用法:array ImagePSText(int image, string text, int font, int size, int foreground, int background, int x, int y, int space, int tightness, float angle, int antialias_steps);

ImagePSBBox

作用:計算 Posts.c.r.i.p.t 文字所占區域

用法: array ImagePSBBox(string text, int font, int size, int space, int width, float angle);

ImageCreateFromPNG

作用:取出 PNG 圖型

用法:int ImageCreateFromPng(string filename);

ImagePNG

作用:建立 PNG 圖型

用法:int ImagePng(int im, string [filename]);

ImageCreateFromGIF

作用:取出 GIF 圖型

用法:int ImageCreateFromGif(string filename);

ImageGIF

作用:建立 GIF 圖型

用法:int ImageGif(int im, string [filename]); 

 

贊(0)
分享到: 更多 (0)
網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號
精品人妻系列无码人妻免费视频 | 亚洲av午夜福利精品一区人妖| 亚洲国产精品狼友中文久久久 | 7777精品久久久大香线蕉| 日韩精品福利在线| 亚洲日韩在线观看免费视频| 国内精品一区二区三区最新| 亚洲国产精品精华液| 国产91久久精品一区二区| 91久久精品国产91久久性色也| 午夜精品久久久久久久久| 久久青草精品38国产免费| 国产香蕉精品视频在| 国内精品一线二线三线黄| 久久夜色精品国产www| 精品国精品国产自在久国产应用男| 人妻少妇精品久久| 精品在线视频免费| 午夜精品一区二区三区在线观看| 亚洲AV日韩AV鸥美在线观看| 久久久久国产日韩精品网站 | 午夜精品久久久久久中宇| 亚洲国产精品一区二区久久hs| 国产精品无码av在线播放| 久久国产精品久久久| 精品精品国产自在久久高清 | 四虎国产精品永久在线无码| 亚洲精品国产首次亮相| 人妻少妇精品无码专区漫画| 人人妻人人澡人人爽人人精品浪潮| 香蕉久久夜色精品国产2020| 2021最新国产精品网站| 久热爱精品视频线路一| 精品久久久无码人妻中文字幕豆芽| 久久国产精品99国产精| 午夜精品福利影院| 国产精品亚洲va在线观看| 久久精品无码一区二区日韩AV | 精品无码AV无码免费专区| 91精品国产免费久久国语蜜臀| 亚洲精品在线不卡|