Table of Contents

Image Panel

Description

This meter displays a small icon onto which an image file can be dragged in order for the image to be displayed inside a panel on the desktop.

Download

Code

[Rainmeter]
Update=1000
DynamicWindowSize=1

[Metadata]
Name=ImagePanel
Author=Wizardry and Steamworks
Information=Drag and drop image panels.
Version=1.1
License=Creative Commons Zero - CC0

[Variables]
File=\\AURORA\strobe\Pictures\Meme\1649974022290.gif
W=328
H=272
A=150

[DragNDrop]
Measure=Plugin
Plugin=Drag&Drop
Action=Path
OnDropAction=[!WriteKeyValue Variables File $File$][!UpdateMeasureGroup imagesize]

[MeasureWidth]
Measure=Plugin
Plugin=ImageSize
ImageName=[DragNDrop]
Dimension=Width
UpdateDivider=-1
DynamicVariables=1
Group=imagesize
OnChangeAction=[!WriteKeyValue Variables W [MeasureWidth]][!Refresh][!UpdateMeter Image][!UpdateMeter Frame]

[MeasureHeight]
Measure=Plugin
Plugin=ImageSize
ImageName=[DragNDrop]
Dimension=Height
UpdateDivider=-1
DynamicVariables=1
Group=imagesize
OnChangeAction=[!WriteKeyValue Variables H [MeasureHeight]][!Refresh][!UpdateMeter Image][!UpdateMeter Frame]

[Image]
Meter=Image
ImageName=#File#
X=0
Y=18
W=#W#
H=#H#
ImageAlpha=#A#
DynamicVariables=1

[Control]
Meter=Image
X=0
Y=0
ImageName=#@#Images\icon.png
MouseScrollUpAction=[!WriteKeyValue Variables A "(Clamp(#A# + 15, 0, 255))"][!Refresh][!UpdateMeter Image][!UpdateMeter Frame]
MouseScrollDownAction=[!WriteKeyValue Variables A "(Clamp(#A# - 15, 0, 255))"][!Refresh][!UpdateMeter Image][!UpdateMeter Frame]
MouseLeaveAction=[!Draggable 0][!ZPos -2]
MouseOverAction=[!Draggable 1][!ZPos 2]

[Frame]
Meter=Shapecc
X=0
Y=0
DynamicVariables=1
Shape=Rectangle 0,18,#W#,#H# | StrokeColor 255,255,255,255 | Fill Color 255,0,0,0

rainmeter/skins/image_pnel.txt · Last modified: 2024/09/23 14:57 by office

Wizardry and Steamworks

© 2025 Wizardry and Steamworks

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.