Pul53dr1v3r wrote: ↑April 4th, 2019, 3:14 pm
Hi. Is it possible to scale a bg image in BackgroundMode3 (or in any other that reaqures an image as a bg), using TransformationMatrix setting?
But you can use an Image meter, which has the image wanted to be used as background. The image can be scaled on a such meter. The only thing you have to take care is to put the Image meter as FIRST meter of the skin. This way it'll be in background, all other meters will be placed over it. You also can set the size of the skin, with SkinWidth and SkinHeight options, placed into the [Rainmeter] section, setting it to the same size as the Image meter.
Pul53dr1v3r wrote: ↑April 4th, 2019, 7:38 pm
Edit: The Scale will be a dinamyc variable to easily change the whole skin size including bg, fonts, graphs...
Unfortunately won't work, because the [Rainmeter] section doesn't support dynamic variables (Note here). So, you can't use here the Scale variable if you set it dynamically (with a !SetVariable bang).
balala wrote: ↑April 4th, 2019, 7:54 pm
Unfortunately won't work, because the [Rainmeter] section doesn't support dynamic variables (Note here). So, you can't use here the Scale variable if you set it dynamically (with a !SetVariable bang).
sorry for the bad term "dynamic". I meant to say it will be entered manually by someones wish. If the Scale=1 is a small skin size for someone, he will set it manually to a higher value and save the change.
I wouldn't use the bang if not necessary. Simper the better.
Pul53dr1v3r wrote: ↑April 4th, 2019, 8:35 pm
sorry for the bad term "dynamic". I meant to say it will be entered manually by someones wish. If the Scale=1 is a small skin size for someone, he will set it manually to a higher value and save the change.
Ok, normally, this way it will work.
Pul53dr1v3r wrote: ↑April 4th, 2019, 8:35 pm
I wouldn't use the bang if not necessary. Simper the better.
Usually using the bangs is better (due to the possibility to set things dynamically). But in this case it's nor possible (as described above), nor necessary (probably no one will scale the skin regularly).
balala wrote: ↑April 4th, 2019, 8:40 pm
Ok, normally, this way it will work.
It could pass at a simple skin but here is almost everithyng out of order.
Tested the method on a bit more complicated skin and it caused me a headache:
Also tried using Meter image with ScaleMargins etc. but no success...
Edit: here is the skin if needed:
You do not have the required permissions to view the files attached to this post.
Note that the background image is already scaled, even when the Scale variable is set to 1. This is caused by the fact that the size of the Background.png image is 210x68 pixels, but in the code the BgHeight variable ([Variables] section) is set to 150. This scales the image and if you set the Scale variable to a greater value then 1 (for example Scale=2), the background is even more distorted.
The best method to handle this probably is to set back the commented out BackgroundMode and BackgroundMargins options into the [Rainmeter] section. For example using the commented out options:
balala wrote: ↑April 5th, 2019, 4:06 pm
Note that the background image is already scaled, even when the Scale variable is set to 1. This is caused by the fact that the size of the Background.png image is 210x68 pixels, but in the code the BgHeight variable ([Variables] section) is set to 150. This scales the image and if you set the Scale variable to a greater value then 1 (for example Scale=2), the background is even more distorted.
The best method to handle this probably is to set back the commented out BackgroundMode and BackgroundMargins options into the [Rainmeter] section. For example using the commented out options:
Ok, but how to make it properly scale the bg (as the whole skin) in BackgroundMode=3 so that when i turn off the graphs the empty part of the skin disappears, and the bg fits its size according to the content size...? I've no idea if it is even possible...
You do not have the required permissions to view the files attached to this post.