人要向着光明的地方看,不能朝着黑暗的地方瞧去,不然你会越看越没信心!

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

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

数据统计

  • 访问量: 6457
  • 日志数: 60
  • 图片数: 6
  • 建立时间: 2006-06-17
  • 更新时间: 2007-03-18

RSS订阅

Open Toolbar