圖片處理
>去除背景
 
Rainmeter
>基礎篇
>基礎篇-圖片
>基礎篇-座標
>
>初章
>第二章

..ini核心說明,第二章

 

看完了初章的教學後,再來就是要如何將文字、圖把它應用到面板上了

 

 

;=顯示==========================================

;再來就是將想要的畫面顯現的部份了
;第二章
;這裡顯示有分先後順序,越先顯示的是會被壓在下面的唷,所以要注意寫程式的順序
[Foundation]
Meter=IMAGE
X=0
Y=0
W=350
H=504
SolidColor=40, 50, 80, 100
;背景設定,第七行是設定背景顏色

[MeterNagato]
Meter=IMAGE
X=0
Y=0
ImageName=nagato.png
;將要放在上面的圖片叫出來,Meter=IMAGE設定他為圖片,X、Y是圖的位置,ImageName=nagato.png圖片名稱為nagato.png

[MeterUpTime]
Meter=STRING
MeasureName=MeasureUpTime
X=201
Y=48
FontColor=255, 255, 255
StringStyle=NORMAL
FontSize=8
StringAlign=LEFT
FontFace=Arial
Prefix="已啟動: "
;顯示電腦已啟動的時間,Meter=STRING設定成String(字串),呼叫的物件為MeasureName=MeasureUpTime
;FontColor=255, 255, 255 '字體顏色
;StringStyle=NORMAL '字串風格
;FontSize=8 '字體大小
;StringAlign=left '對齊方式靠左
;FontFace=Arial '字體
;Prefix=" 已啟動: " '開頭顯示的字

[MeterIP]
Meter=String
MeasureName=MeasureIP
X=202
Y=78
FontColor=255, 255, 255
StringStyle=NORMAL
FontSize=8
StringAlign=LEFT
FontFace=Arial
Prefix="IP: "

[MeterDate]
Meter=String
MeasureName=MeasureDate
X=203
Y=25
FontColor=255, 255, 255
StringStyle=NORMAL
FontSize=9
StringAlign=LEFT
FontFace=Arial

[MeterTime]
Meter=String
MeasureName=MeasureTime
X=200
Y=64
FontColor=255, 255, 255
StringStyle=NORMAL
FontSize=8
StringAlign=LEFT
FontFace=Arial
Prefix="目前時間: "

;=資訊==========================================
;CPU
[MeterCPU]
Meter=String
MeasureName=MeasureCPU
X=200
Y=110
FontColor=255, 255, 255
StringStyle=NORMAL
FontSize=8
StringAlign=LEFT
FontFace=Arial
Prefix="CPU使用率: "
Text="%1%"
;Text="%1%"是將顯示出來的數字後面加上一個「%」

;已使用記憶體
[MeterPhysicalMemory]
Meter=String
MeasureName=MeasurePhysicalMemory
X=200
Y=126
FontColor=255, 255, 255
StringStyle=NORMAL
FontSize=8
StringAlign=LEFT
FontFace=Arial
Prefix="RAM: "
AutoScale=1
;AutoScale是否自動變更單位 0關閉,1開啟

;下載速率
[MeterNetIn]
Meter=String
MeasureName=MeasureNetIN
X=200
Y=142
FontColor=255, 255, 255
StringStyle=NORMAL
FontSize=8
StringAlign=LEFT
FontFace=Arial
Prefix="Down: "
AutoScale=1
Postfix="Bps"
;Postfix結尾顯示文字

;上傳速率
[MeterNetOut]
Meter=STRING
MeasureName=MeasureNetOut
X=200
Y=158
FontColor=255, 255, 255
StringStyle=NORMAL
FontSize=8
StringAlign=LEFT
FontFace=Arial
AutoScale=1
Prefix="UP: "
Postfix="Bps"

;=硬碟==================================

;硬碟空間1
[MeterFreeDiskSpace1]
Meter=String
MeasureName=MeasureFreeDiskSpace1
X=200
Y=190
FontColor=255, 255, 255
StringStyle=NORMAL
FontSize=8
StringAlign=LEFT
FontFace=Arial
AutoScale=1
Prefix="磁碟C: "
Postfix="B"

;硬碟空間2
[MeterFreeDiskSpace2]
Meter=String
MeasureName=MeasureFreeDiskSpace2
X=200
Y=206
FontColor=255, 255, 255
StringStyle=NORMAL
FontSize=8
StringAlign=LEFT
FontFace=Arial
AutoScale=1
Prefix="磁碟D: "
Postfix="B"

;第二章結束
;這邊都是文字部分,漂亮的在配合圖片,我會再加到第三章去的

 

inserted by FC2 system