It is currently October 25th, 2021, 6:44 am

[Bug] Antialiasing difference when applying an image mask

Report bugs with the Rainmeter application and suggest features.
User avatar
Cariboudjan
Posts: 195
Joined: May 12th, 2019, 8:55 am

[Bug] Antialiasing difference when applying an image mask

Post by Cariboudjan »

Untitled.png
When an image receives an image mask it decreases in size by 2 pixels. Appears to be antialiasing the image resulting in the appearance of a smaller meter, rather than actually changing the image's dimensions.
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22374
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Bug] Antialiasing difference when applying an image mask

Post by jsmorley »

Cariboudjan wrote: August 20th, 2021, 6:59 pm Untitled.png

When an image receives an image mask it decreases in size by 2 pixels. Appears to be antialiasing the image resulting in the appearance of a smaller meter, rather than actually changing the image's dimensions.
I would be tempted to use Container rather than MaskImage. I really think Container will do all you want, and it shouldn't have any weirdness with how it renders images. MaskImage is in effect deprecated, and I don't recommend it.
User avatar
Cariboudjan
Posts: 195
Joined: May 12th, 2019, 8:55 am

Re: [Bug] Antialiasing difference when applying an image mask

Post by Cariboudjan »

Would love to but containers actually do not work in this specific application, since the meter itself is also inside its own container, and containers cant exist inside another container.
User avatar
jsmorley
Developer
Posts: 22374
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Bug] Antialiasing difference when applying an image mask

Post by jsmorley »

Well, the bad news is that we are just done with MaskImage, and I don't foresee any changes being made to it. You might want to re-think the approach are using if MaskImage isn't working well for you.
User avatar
Brian
Developer
Posts: 2272
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: [Bug] Antialiasing difference when applying an image mask

Post by Brian »

User avatar
Yincognito
Rainmeter Sage
Posts: 4070
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: [Bug] Antialiasing difference when applying an image mask

Post by Yincognito »

Just speculating here, but maybe you could apply a TransformationMatrix to the image to make sure it stays the same size visually, then use a partially opaque padding approach of some kind (if possible) for the underlying meter to make sure the clickable area stays the same too... :???:
User avatar
Cariboudjan
Posts: 195
Joined: May 12th, 2019, 8:55 am

Re: [Bug] Antialiasing difference when applying an image mask

Post by Cariboudjan »

It's not a big deal. I just thought I'd share. It's not breaking anything.