瀏覽單個文章
trouk
New Member
 

加入日期: Mar 2003
您的住址: 台北
文章: 3
引用:
作者sweshi
那個每個專輯判斷一張圖片的問題,已經爬文到了...@@

剩下封面等比縮放問題...


等比例縮放只要把$imageabs2()中最後的NOKEEPASPECT拿掉就可以了,
我更改oScARSh兄Single column playlist中Album mode下的cover設定如下:

/*********************************************
$if($stricmp($get(coverPath),nocover),
$drawrect($eval(%_width%-$get(coverwidth)-14),$eval(33-%_height%*%_itemindex%),$eval($get(coverwidth)+4),$eval($get(coverheight)+4),brushcolor-0-0-0 pencolor-0-0-0 )
$drawrect($eval(%_width%-$get(coverwidth)-13),$eval(34-%_height%*%_itemindex%),$eval($get(coverwidth)+2),$eval($get(coverheight)+2),brushcolor-112-120-150 pencolor-112-120-150)
$drawrect($eval(%_width%-$get(coverwidth)-12),$eval(35-%_height%*%_itemindex%),$get(coverwidth),$get(coverheight),brushcolor-62-66-83 pencolor-62-66-83)
$imageabs2($get(coverwidth),$get(coverwidth),,,$get(coverwidth),$get(coverheight),$eval(%_width%-$get(coverwidth)-10),$eval(34-%_height%*%_itemindex%),images\nocd.png,NOKEEPASPECT ALPHA-64)
$imageabs2($get(coverwidth),$get(coverwidth),,,$get(coverwidth),$get(coverheight),$eval(%_width%-$get(coverwidth)-10),$eval(34-%_height%*%_itemindex%),images\cdmask.png,NOKEEPASPECT)
,
$imageabs2($get(coverwidth),$get(coverwidth),,,$get(coverwidth),$get(coverheight),$eval(%_width%-$get(coverwidth)-10),$eval(34-%_height%*%_itemindex%),$get(coverPath),HALIGN-R)
)
/************************************************


其中於panels_UI的user global設定(把oScARSh兄於edit layout中的coverpath設定刪除):

/*************************************
$puts(coverName1,folder.*)
$puts(coverName2,cover.*)

$if($fileexists($replace(%path%,%filename_ext%,$get(coverName1))),$puts(coverPath,$replace(%path%,%filename_ext%,$get(coverName1))),
$if($fileexists($replace(%path%,%filename_ext%,$get(coverName2))),$puts(coverPath,$replace(%path%,%filename_ext%,$get(coverName2))),
$if($fileexists($replace($replace(%path%,\%filename_ext%,),$directory(%path%,1),)$get(coverName1)),$puts(coverPath,$replace($replace(%path%,\%filename_ext%,),$directory(%path%,1),)$get(coverName1)),
$if($fileexists($replace($replace(%path%,\%filename_ext%,),$directory(%path%,1),)$get(coverName2)),$puts(coverPath,$replace($replace(%path%,\%filename_ext%,),$directory(%path%,1),)$get(coverName2)),
$puts(coverPath,nocover)))))
/*************************************


這樣就可以讀取專輯資料夾或上一層資料夾的folder或cover開頭的圖檔來當專輯圖面,
並增加nocover參數判斷是否使用無專輯封面時預設的CD殼圖,
避開原oScARsh兄code內採用"疊圖"的方式(避免NOKEEPASPECT參數拿掉時專輯封面背後還有CD殼的圖當底)。

基本上在User global設定或在edit layout中的global設定coverpath都可以,只是習慣問題,不過當兩邊都有設定時,panels_UI會以edit layout中的global當"後令",而程式語言與長官的命令都是"後令蓋前令"的!!
舊 2007-07-21, 01:55 PM #1286
回應時引用此文章
trouk離線中