It is currently April 20th, 2024, 3:33 am

[Bug] Antialiasing difference when applying an image mask

Report bugs with the Rainmeter application and suggest features.
User avatar
Cariboudjan
Posts: 268
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: 22629
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: 268
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: 22629
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: 2679
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: 7128
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... :???:
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Cariboudjan
Posts: 268
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.