eclectic-tech wrote: ↑October 18th, 2018, 7:11 pm
I agree there is a lot to read and comprehend about TransformationMatrix...
Balala has a very good knowledge of how to use it's power in many ways...
He practices the "Black Arts", as far as I can tell, he works magic!
Thanks eclectic-tech for the appreciations, mean a lot...
TransformationMatrix on the other hand is nothing more than pure math (not to boast, but math is a good friend of mine).
eclectic-tech wrote: ↑October 18th, 2018, 7:11 pm
But to scale images, you only need to set a #Scale# variable as the
first and
fourth values to be able to change any image size quickly and easily by setting the value of the #Scale# variable.
Just as a side note eclectic-tech, here is a small issue of the TransformationMatrix applied to those Rotator meters. A such TransformationMatrix is ok, while the meter is positioned to
X=0 and
Y=0. In such cases, when TransformationMatrix is applied it simply resizes the Rotator meter. But if this meter is positioned to any other X and Y, your TransformationMatrix beside resizing the meter, also moves it. The last two parameters of TransformationMatrix are there exactly to move the meter which has applied the TranformationMatrix option in the any new position. In the "What the heck is Rainmeter doing?!" section of the above guide, is explained detaliately how can you calculate these parameters. The essence is that you have to choose a point which doesn't move when TransformationMatrix is applied and calculate those parameters in a way to keep the chosen point unmoved.
Wat is important is that to keep the Roatator meters unmoved, you should have to use the following TransformationMatrix on both meters:
TransformationMatrix=#size#;0;0;#size#;((1-#size#)*[#CURRENTSECTION#:X]);((1-#size#)*[#CURRENTSECTION#:Y]).
Just to demonstrate what am I talking about, I added the following LeftMouseUpAction option to [MeterB] meter:
LeftMouseUpAction=[!SetVariable size "((#size#=0.5)?1:0.5)"][!UpdateMeter "MeterA"][!UpdateMeter "MeterB"][!Redraw]. The above !SetVariable bang toggles the size variable between 0.5 and 1. This way if you click the meter, both of them are resized.
If you try this out, keep in mind that if TransformationMatrix is not applied, the meters have different positions and also different offsets are applied.