人要向着光明的地方看,不能朝着黑暗的地方瞧去,不然你会越看越没信心!
php imagecopyresampled使用方法
上一篇 /
下一篇 2006-12-17 17:15:43
/ 个人分类:PHP
使用函式:
- bool imagecopyresized ( resource dst_image,
resource src_image, int dst_x, int dst_y, int src_x, int src_y, int
dst_w, int dst_h, int src_w, int src_h )
- bool
imagecopyresampled ( resource dst_image, resource src_image, int dst_x,
int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int
src_h )
函式參數說明:
- dst_image : 輸出目標檔案
- src_image : 來源檔案
- dst_x: 目標檔案開始點的 x 座標
- dst_y: 目標檔案開始點的 y 座標
- src_x: 來源檔案開始點的 x 座標
- src_y: 來源檔案開始點的 y 座標
- dst_w: 目標檔案的長度
- dst_h: 目標檔案的高度
- src_w: 來源檔案的長度
- src_h: 來源檔案的高度
註: imagecopyresampled(), imagecopyresized() 兩個的縮圖品質, imagecopyresampled() 縮起來比較好.
导入论坛
收藏
分享给好友
管理
举报
TAG:
PHP