AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.12k stars 2.26k forks source link

Rendered color is not accurate #17631

Open mohdimas opened 3 days ago

mohdimas commented 3 days ago

Describe the bug

When having some colors with certain hex, the output color is not accurate when tested using color picker tool.

To Reproduce

I created this simple project which contains 4 different colors.

  1. Run the project
  2. Take a screenshot or capture the output window
  3. Paste it into any image editing tools, on my case I used https://imagecolorpicker.com/
  4. Test each of the color and as you can see below, the hex and the set color doesn't match except for the red one.

Kapture 2024-11-28 at 09 23 04

Expected behavior

Color should match

Avalonia version

11.2.1

OS

macOS

Additional context

No response

Arktische commented 3 days ago

That’s not bug,screen picker always has distortion