Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opacity is ignored for Image background #5568

Closed
ialbert-AUT opened this issue Mar 25, 2022 · 6 comments · Fixed by #5607
Closed

opacity is ignored for Image background #5568

ialbert-AUT opened this issue Mar 25, 2022 · 6 comments · Fixed by #5607
Assignees
Labels
area-controls-image Image control fixed-in-6.0.300-rc.1 Look for this fix in 6.0.300-rc.1! platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects

Comments

@ialbert-AUT
Copy link

ialbert-AUT commented Mar 25, 2022

Description

Background is not transparent and should be grayish:

<Image Source="dotnet_bot.png" BackgroundColor="Black"
			Opacity="0.5"
			Margin="20, 10, 0, 0"
			HorizontalOptions="Start" / >

Also Hot Reload issue: start debugging and adding the Opacity property later doesn't change the rendering. If I add the Opacity before starting and change the values it honours them fine.
Screenshot_1648203020

Steps to Reproduce

<Image Source="dotnet_bot.png" BackgroundColor="Black"
			Opacity="0.5"
			Margin="20, 10, 0, 0"
			HorizontalOptions="Start" / >

Version with bug

Preview 14 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 31

Did you find any workaround?

No response

Relevant log output

No response

@ialbert-AUT ialbert-AUT added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Mar 25, 2022
@jfversluis
Copy link
Member

Could you please add some relevant code or a reproduction sample that shows this issue so we can understand what your code looks like and how you expect this to work? Thanks!

@jfversluis jfversluis added platform/android 🤖 area-image Image loading, sources, caching s/needs-info Issue needs more info from the author area-controls-image Image control and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Mar 25, 2022
@ghost
Copy link

ghost commented Mar 25, 2022

Hi @ialbert-AUT. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Mar 25, 2022
@ialbert-AUT
Copy link
Author

ialbert-AUT commented Mar 25, 2022

Could you please add some relevant code or a reproduction sample that shows this issue so we can understand what your code looks like and how you expect this to work? Thanks!

hi, the code is there but somehow it gets hidden. Strange.
image

ahh, the "/>" confuses the engine.

@jfversluis
Copy link
Member

Ah gotcha! Haha yeah if you wrap it in the code formatting it should prevent that from happening. Edited your original post now to do that so you might want to use that next time :) thanks!

@jfversluis jfversluis removed the s/needs-info Issue needs more info from the author label Mar 25, 2022
@VincentBu
Copy link

Repro on Android emulator. But, just curious, does opacity property affect both image and background?

@VincentBu VincentBu added the s/verified Verified / Reproducible Issue ready for Engineering Triage label Mar 28, 2022
@ialbert-AUT
Copy link
Author

Repro on Android emulator. But, just curious, does opacity property affect both image and background?

hm. Opacity is a property of VisualElement, so generic.
I could use the alpha channel of the BackgroundColor / Brush for opacity.
In that case this is not a bug! :)

@jsuarezruiz jsuarezruiz self-assigned this Mar 28, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Apr 27, 2022
@samhouts samhouts added the fixed-in-6.0.300-rc.1 Look for this fix in 6.0.300-rc.1! label Feb 17, 2023
@Eilon Eilon removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-image Image loading, sources, caching labels May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-image Image control fixed-in-6.0.300-rc.1 Look for this fix in 6.0.300-rc.1! platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
No open projects
Triage
Awaiting triage
Development

Successfully merging a pull request may close this issue.

6 participants