Flood fill change the entire image

Corel Paint Shop Pro

Moderator: Kathy_9

cricketziggy
Posts: 1
Joined: Thu Mar 16, 2023 4:05 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PaintShop Pro Ultimate 2023

Flood fill change the entire image

Post by cricketziggy »

Whenever I use Flood Fill, the entire image is change to the selected color. No matter what.
Example, trying to change a red area to black, the entire image is changed to black.
I've tried everything.
Using Paintshop Pro Ultimate 2023.
What am I doing wrong, if anything?
Thanks!
Jean-Luc
Advisor
Posts: 2145
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)

Re: Flood fill change the entire image

Post by Jean-Luc »

Don't use the FloodFill tool.
Use the Color Changer tool or the Color Replacer tool.
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
Jean-Luc
Advisor
Posts: 2145
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)

Re: Flood fill change the entire image

Post by Jean-Luc »

... or select the color with the Magic Wand tool and click with the Flood Fill tool in the selection.

... or use the Remove Any Color script:
https://forum.corel.com/viewtopic.php?p=367769
and replace the transparency with the color of your choice.
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
LeviFiction
Advisor
Posts: 6775
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: Flood fill change the entire image

Post by LeviFiction »

I would personally like to know what your settings are and what you mean by "tried everything"? Also are you working on a multi-layered image or just a single layer? I'm also assuming you're using either the Complete or Essentials workspaces as I don't think the Photography workspace has the floodfill tool.

This could be anything from just not using the best settings, to needing to perform a factory reset because something got corrupted and it needs to be fixed.

So some quick background and you tell us what you're using.

This is the Tool Options palette when the flood fill tool is selected.
flood-fill-options.png
The two big options are Match Mode, and Tolerance. If you're on a single layer image the "Use all layers" checkbox will be disabled, if you're working on a mult-layer image the checkbox will be available. It should be off to avoid interacting with other layers unless that's what you want it to do.

We'll start with tolerance: Tolerance means "how close to the matched attribute is okay to select"? If I select a color based on RGB (128,128,128) and have a tolerance of 20 I might match colors from 118-138 in each channel. The higher the tolerance, the more colors it'll pick. The lower the tolerance the more the colors have to match the original color. The default tolerance of 20 is usually sufficient, but this depends on your image. If you have an image of blue colors with a high enough tolerance all of the pixels match and it'll overwrite everything. So if it's matching too many pixels, try lowering the tolerance.

Match Mode determines how PSP will fill the image, matching some element of the pixel you click on.

Here are the available modes:
  • RGB Value - This will find all pixels in the image that match the same RGB value of the pixel you clicked on.
  • Color - This matches the Hue and Saturation (shading variations) of the pixel you clicked on
  • Brightness - This matches brightness (HSB not lightness HSL) of the pixel
  • Perceptual - Based on HSL color values
  • Traditional - Like RGB Value, matches RGB but has a bias towards Lightness variations. So lighter versions of whatever version of your RGB selection will also be selected at higher rates.
  • All Opaque - This option doesn't use tolerance, it just says "if the pixel is even remotely visible, change the color. Leaving only fully transparent areas alone.
  • Opacity - This option matches the opacity of the pixel you click. So if you're working on a background layer and you have Opacity set as the match mode it'll fill everything since the background layer has no transparency and everything is opaque. So the opacity matches across all pixels.

    Blend mode determines how the new color interacts with the old color that it's replacing. Such as overwriting completely (Normal) or mixing together in some way.
You do not have the required permissions to view the files attached to this post.