PintaProject / Pinta

Simple GTK# Paint Program
http://www.pinta-project.com/
MIT License
1.75k stars 267 forks source link

A color picker get incorrect color on the dimming picture #745

Closed u5n closed 3 months ago

u5n commented 3 months ago

Description In "choose primary color", the color picker get incorrect color on the dimming picture

To Reproduce

  1. Fulfill picture with "#00FF00"(green) color
  2. Double Click to select primary color in the bottom left palette.
  3. Under Custom click the "+" button
  4. Now click "pick a color from the screen", try to pick green color from your picture, you will get the wrong "#00B100"(dark green) color

Version Ubuntu 24.04 Pinta "2.2+ba63d8807b2512911c7e5453312b317dddc4da84"

cameronwhite commented 3 months ago

Is this Pick a color from the screen option in the color chooser dialog? It must be a Linux-specific thing that GTK enables, since it isn't appearing for me on macOS.

Using the Color Picker tool from Pinta's side toolbar is probably the better way to do this though, if you're wanting to pick a color from the image?

u5n commented 3 months ago

Is this Pick a color from the screen option in the color chooser dialog? It must be a Linux-specific thing that GTK enables, since it isn't appearing for me on macOS.

Using the Color Picker tool from Pinta's side toolbar is probably the better way to do this though, if you're wanting to pick a color from the image?

I want to look up the RGB value of a point on a picture, so I have to use the above steps. I don't know why the gcolor3 doesn't work on my computer. image

cameronwhite commented 3 months ago

Thanks, yeah I think that is something that GTK's color chooser dialog is only enabling on certain platforms, so it's not something Pinta is directly responsible for. If it's directly sampling from what the screen is displaying, and the window manager is dimming the parent window, then that would explain why a different color is being picked

I'd suggest using the color picker tool that's built into Pinta for choosing colours from an image you have open (see attached screenshots). You can then click on a pixel to change Pinta's primary color

Screenshot 2024-03-12 at 10 27 27 PM Screenshot 2024-03-12 at 10 27 57 PM