瀏覽單個文章
serect
Major Member
 

加入日期: Aug 2001
您的住址: 台中市
文章: 257
引用:
作者serect
你要去它提供的連結裡面,把那各耳機圖片下載..放在foobar 的simple 這個資料夾裡面就ok了

code 裡面的"$imageabs($sub(%_width%,320),5,simple\headphone.png,-5)"
這一行就有說明了


由它code 裡面"$imageabs(9,$if($strcmp(%tracknumber%,01),0,$add(24,$mul(-24,%tracknumber%))),simple\albumborder.png,)"
這樣子的寫法可以看出..它所有的專輯圖片也都是放在simple 這個資料夾裡面

但是最新版的foo_uie_single_column_playlist ,提供了$imageabs2這個功能,可以調整大小,還有可以使用絕對路徑,也就是說圖片的位置可以不在foobar的分區了。

下面來介紹下$imageabs2的參數

$imageabs2(resize width,resize height,srcX,srcY,srcW,srcH,dstX,dstY,IMAGE DIRECTORY/IMAGE.png,)

- resize width(調整到要的寬度)
- resize height(調整到要的高度)

- srcX - the x position on the resized image where you want to start(在調整後的圖像上取要顯示部分的起點x坐標)
- srcY - the y position on the resized image where you want to start(在調整後的圖像上取要顯示部分的起點y坐標)
- srcW - the width on the resized image you want(要顯示部分的寬度)
- srcH - the height on the resized image you want(要顯示部分的高度)

- dstX - the x position on the screen where you want the image drawn(在列表中顯示圖像的x坐標,就是左邊距)
- dstY - the y position on the screen where you want the image drawn(在列表中顯示圖像的y坐標)

假設代碼是$imageabs2(60,60,,,,,6,$add(25,$mul(-%_height%,%tracknumber%)),$replace(%path%,%filename_ext%,)folder.jpg,)

就是將歌曲所在文件夾的folder.jpg調整到60*60的大小顯示在列表中。
舊 2006-10-05, 10:18 AM #748
回應時引用此文章
serect離線中