This is just a short tip on how to achieve rounded corners in Rainmeter. This may be very inefficient, but it produces the smoothest rounded corners I have seen. This only concerns skins with variable image meters as others can just have rounded corners in the images themselves.
This method involves one invisible image meter to get the size of the image, however this is unnecessary if the image size will be constant. The method consists of several image meters using the imagecrop option. The ImageAlpha option is used to antialias the corners.
This is a sample code where the Image meter is an invisible instance of the Windows Media Player album cover.
Code: Select all
[MeasureCover]
Measure=PLUGIN
Plugin=NowPlaying
PlayerName=WMP
PlayerType=Cover
[MeterCoverSize]
Meter=IMAGE
MeasureName=MeasureCover
ImageAlpha=0
x=(-[#CURRENTSECTION#:W)
y=(-[#CURRENTSECTION#:H)
DynamicVariables=1
Code: Select all
[MeterBackground1]
Meter=IMAGE
MeasureName=MeasureCover
w=90
h=100
x=10
y=0
ImageCrop=([MeterCoverSize:W]*[#CURRENTSECTION#:X]/100),([MeterCoverSize:H]*[#CURRENTSECTION#:Y]/100),([MeterCoverSize:W]*[#CURRENTSECTION#:W]/100),([MeterCoverSize:H]*[#CURRENTSECTION#:H]/100)
DynamicVariables=1
Hopefully I made this clear enough and I hope you found this tip useful. Also, this is just a guide, so feel free to mess around with the ImageCrop to achieve your desired results. I know there are several variations, so do experiment.
Cheers,
TheMonoTM
EDIT: Updated code for invisible instance to fix skin dimensions