I am working on a advanced version of this skin which will show the current wallpapers used, and their relative position to each other.
I want to focus on the Y direction first.
So i think i need to know the difference in height between the to images in this example for the next step.
Known values:
Image1 height (57)
Image2 height (102)
The difference (in this case it's 27)
I know the value because i used Photoshop to count the pixels,
but i cannot figure out the formula i should use to arrive at 27.
Incredibly i have gotten most of the positional math correct. But still not perfect.
It is currently March 29th, 2024, 9:50 am
DisplayFusion Command Line Tool
-
- Posts: 424
- Joined: February 8th, 2015, 10:07 pm
- Location: EU, Denmark.
Re: DisplayFusion Command Line Tool
You do not have the required permissions to view the files attached to this post.
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: DisplayFusion Command Line Tool
For example:StArL0rd84 wrote: ↑March 23rd, 2019, 9:37 am I know the value because i used Photoshop to count the pixels,
but i cannot figure out the formula i should use to arrive at 27.
Code: Select all
[MeasureDifference]
Measure=Calc
Formula=( [MeterImage2:H] - [MeterImage1:H] )
DynamicVariables=1
-
- Posts: 424
- Joined: February 8th, 2015, 10:07 pm
- Location: EU, Denmark.
Re: DisplayFusion Command Line Tool
That would result in 45 not 27balala wrote: ↑March 23rd, 2019, 10:53 am For example:Code: Select all
[MeasureDifference] Measure=Calc Formula=( [MeterImage2:H] - [MeterImage1:H] ) DynamicVariables=1
But i figured out another way. thanks anyway balala
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: DisplayFusion Command Line Tool
Yep, you're right, my mistake. Sorry.
Try the following Formula: Formula=( [MeterImage1:YH] - [MeterImage2:Y] ).
For this to work you need to have installed at least version 4.3 r3294 of Rainmeter. If you have earlier version, use the following formula: Formula=( [MeterImage1:Y] + [MeterImage1:H] - [MeterImage2:Y] ).
Sorry for my mistake.