StringEffect and FontEffectColor can be used only on String meters. It's very hard (close to impossible) to create such effect on an Image meter, especially if it has some transparent parts and you'd like to follow them with the shadow.
However if you want to apply the shadow only to rectangular images, it become somewhat possible. Here is a sample. The shadow is created from 16 elements of a Shape meter. The consecutive meters (elements) are becoming more and more transparent, until they are vanishing.
The code uses the ImageSize plugin, which has to be installed. To install it, just download and install the ImageSize_3.0.rmskin skin, available
. When installing the package, the appropriate version of the plugin is installed, along with a skin. You can take a look to the skin, but if you think you don't need it, you can simply remove it. The installed plugin is kept on your system and can be used.
Code: Select all
[Rainmeter]
Update=-1
AccurateText=1
[Variables]
GlowColor=220,220,220
Thickness=15
Image=- ADD THE PATH AND NAME OF THE IMAGE -
; Thickness - up to 15
[MeasureWidth]
Measure=Plugin
Plugin=ImageSize
ImageName=#Image#
Dimension=Width
[MeasureHeight]
Measure=Plugin
Plugin=ImageSize
ImageName=#Image#
Dimension=Height
[MeterBackground]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,([MeasureWidth]+30),([MeasureHeight]+30) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(15/(Clamp(#Thickness#,0.000001,15))))
Shape2=Rectangle 1,1,([MeasureWidth]+28),([MeasureHeight]+28) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(14/(Clamp(#Thickness#,0.000001,15))))
Shape3=Rectangle 2,2,([MeasureWidth]+26),([MeasureHeight]+26) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(13/(Clamp(#Thickness#,0.000001,15))))
Shape4=Rectangle 3,3,([MeasureWidth]+24),([MeasureHeight]+24) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(12/(Clamp(#Thickness#,0.000001,15))))
Shape5=Rectangle 4,4,([MeasureWidth]+22),([MeasureHeight]+22) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(11/(Clamp(#Thickness#,0.000001,15))))
Shape6=Rectangle 5,5,([MeasureWidth]+20),([MeasureHeight]+20) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(10/(Clamp(#Thickness#,0.000001,15))))
Shape7=Rectangle 6,6,([MeasureWidth]+18),([MeasureHeight]+18) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(9/(Clamp(#Thickness#,0.000001,15))))
Shape8=Rectangle 7,7,([MeasureWidth]+16),([MeasureHeight]+16) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(8/(Clamp(#Thickness#,0.000001,15))))
Shape9=Rectangle 8,8,([MeasureWidth]+14),([MeasureHeight]+14) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(7/(Clamp(#Thickness#,0.000001,15))))
Shape10=Rectangle 9,9,([MeasureWidth]+12),([MeasureHeight]+12) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(6/(Clamp(#Thickness#,0.000001,15))))
Shape11=Rectangle 10,10,([MeasureWidth]+10),([MeasureHeight]+10) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(5/(Clamp(#Thickness#,0.000001,15))))
Shape12=Rectangle 11,11,([MeasureWidth]+8),([MeasureHeight]+8) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(4/(Clamp(#Thickness#,0.000001,15))))
Shape13=Rectangle 12,12,([MeasureWidth]+6),([MeasureHeight]+6) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(3/(Clamp(#Thickness#,0.000001,15))))
Shape14=Rectangle 13,13,([MeasureWidth]+4),([MeasureHeight]+4) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(2/(Clamp(#Thickness#,0.000001,15))))
Shape15=Rectangle 14,14,([MeasureWidth]+2),([MeasureHeight]+2) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(1/(Clamp(#Thickness#,0.000001,15))))
Shape16=Rectangle 15,15,[MeasureWidth],[MeasureHeight] | Fill Color 0,0,0 | StrokeWidth 1 | StrokeColor #GlowColor#,(255-255*(0/(Clamp(#Thickness#,0.000001,15))))
DynamicVariables=1
[MeterImage]
Meter=Image
ImageName=#Image#
X=15r
Y=15r
;W=210
;H=150
;PreserveAspectRatio=1