NEW! PaintShop Pro 2019

How can I change the color of the background in an image?

Corel Paint Shop Pro

Moderator: Kathy_9

How can I change the color of the background in an image?

Postby 357mag » Thu Aug 09, 2018 6:10 pm

I'm making a custom wallpaper using a Microsoft Visual C++ Logo. I already have the logo and everything looks quite good when I place the logo on a blank white background. But when I load it as my desktop wallpaper I'm thinking that the white comes on a little too bright and white looking. So I got some color codes for Vanilla and I changed the background to look more like on off white Vanilla.

But the problem is the background white behind the Visual C++ logo is stark, bright white and you will see from my screenshot what the problem is.

So is there a way I can edit the stark, bright background in the Visual C++ logo to be same same color as my Vanilla desktop background?

I've enclosed a screenshot:
Attachments
Wallpaper Idea.jpg
357mag
 
Posts: 29
Joined: Fri Jul 28, 2017 5:26 pm
operating_system: Windows 7 Professional
System_Drive: C

Re: How can I change the color of the background in an image

Postby Joelle » Thu Aug 09, 2018 9:21 pm

I would use the free plugin:
http://vicanek.de/imageprocessing/colorreplacer.htm

Like so:

MV-Plugins-Color-replacer.jpg


Much easier than using PSP :-)

Joëlle

Vanilla-BG.jpg
Last edited by Joelle on Thu Aug 09, 2018 10:12 pm, edited 1 time in total.
Joëlle
(PSPX9 )
Joelle
 
Posts: 1725
Joined: Wed Apr 02, 2008 10:12 am
Location: UK
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Asus Prime B350M-A
processor: AMD Ryzen 5 1500 Quad-Core
ram: 16 GB RAM
Video Card: NVidia GeForce GTX 1050
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: Samsung
Corel programs: PaintShop Pro X9

Re: How can I change the color of the background in an image

Postby LeviFiction » Thu Aug 09, 2018 9:48 pm

I think PSP is pretty darn easy you just have to know where the tools are. And that's easily done with a quick video: https://drive.google.com/file/d/1QY_bJy ... LK69I/view

In fact I'm pretty sure the color replacer tool does the exact same thing that plugin does.

Here are the options from the video written out.

Option 1: - The hardest one
1) Set the background color on your materials palette to the color you want
2) Grab the Magic Wand tool, use the following settings: Mode: Replace Match Mode; Color Tolerance: 0 Contiguous: Off Feather: 0 Anti-Alias: on
3) Click on the white background to create a selection
4) HIt the delete key to fill with the background color

Option 2:
1) Set Offwhite as foreground color and White as your background color
2) Select "Color Replacer" from the toolbar.
3) On the tool options palette click the "Replace All Pixels button" (it's a little hard to see so watch the video)

Option 3:
1) Set offwhite as foreground color and White as your background color
2) Select the "Color Changer" from the toolbar
3) Click on the white area of the image.
LeviFiction
Advisor
 
Posts: 5212
Joined: Thu Oct 02, 2008 1:07 pm
Location: USA
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PSP: 8, 9, X, XI, X2, X8,X9, 2018, 2019

Re: How can I change the color of the background in an image

Postby Jean-Luc » Thu Aug 09, 2018 10:37 pm

357mag wrote:So is there a way I can edit the stark, bright background in the Visual C++ logo to be same same color as my Vanilla desktop background?
:

Place your image with white background on a layer above the vanilla background.
Set this (white background) Layer mode to Multiply and it is done !
http://www.paintshoppro.eu
Installed PSP Ultimate: X7, X8, X9, 2018 and 2019.
Jean-Luc
 
Posts: 901
Joined: Sat Oct 22, 2011 10:50 pm
Location: Belgium (French speaking)
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, X8, X9, 2018, 2019

Re: How can I change the color of the background in an image

Postby Jean-Luc » Thu Aug 09, 2018 11:07 pm

You may also try this Suz Shook's script
The purpose of this script is to remove any color from an image, much like the Eliminate White and Eliminate Black filters do. This script has more flexibility than those filters, because it allows you to remove ANY color from an image.
ss-RemoveAnyColor-00 (1).zip
(3.9 KiB) Downloaded 19 times
http://www.paintshoppro.eu
Installed PSP Ultimate: X7, X8, X9, 2018 and 2019.
Jean-Luc
 
Posts: 901
Joined: Sat Oct 22, 2011 10:50 pm
Location: Belgium (French speaking)
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, X8, X9, 2018, 2019

Re: How can I change the color of the background in an image

Postby hartpaul » Fri Aug 10, 2018 12:21 am

Also similar to Jean Luc
1. New raster layer, fill with that vanilla color
2. Change Blend mode to Darken
Systems XP, Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 1803 Build 17134.285
hartpaul
Advisor
 
Posts: 2303
Joined: Tue Mar 20, 2012 3:38 pm
Location: Australia
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: AsusTex P7P55D
processor: IntelCore I 5 2.67 Ghz
ram: 8 Gb
Video Card: Nvidia GeForce GTX 460
sound_card: Nvidia High Definition Audio
Hard_Drive_Capacity: 1000 Gb
Monitor/Display Make & Model: AOC
Corel programs: PSP8,X2 to X9,2018,2019

Re: How can I change the color of the background in an image

Postby 357mag » Fri Aug 10, 2018 5:12 am

Okay. Thank You Very Much.
357mag
 
Posts: 29
Joined: Fri Jul 28, 2017 5:26 pm
operating_system: Windows 7 Professional
System_Drive: C

Re: How can I change the color of the background in an image

Postby 357mag » Fri Aug 10, 2018 8:56 am

Python Wallpaper.jpg
Well first I tried the first suggestion as outlined by the guy in the video. It didn't work. But I decided to temporarily abandon the Visual C++ Wallpaper idea and try to change the background color on a Python logo. I used the Replace Color Tool and only the right portion of the background got changed to the off white. Of course I will say that with this Python logo the background is kinda graduated. As you can see the background on the left is darker than the background on the right so I imagine I have to do something else to make this work.

I've enclosed a screenshot of what happened. Not sure how to fix it.
357mag
 
Posts: 29
Joined: Fri Jul 28, 2017 5:26 pm
operating_system: Windows 7 Professional
System_Drive: C

Re: How can I change the color of the background in an image

Postby Jean-Luc » Fri Aug 10, 2018 2:06 pm

357mag wrote:[attachment=0]
I've enclosed a screenshot of what happened. Not sure how to fix it.

What I see is you don't work with layers.
Somme suggestions we made are invoking layers.
http://www.paintshoppro.eu
Installed PSP Ultimate: X7, X8, X9, 2018 and 2019.
Jean-Luc
 
Posts: 901
Joined: Sat Oct 22, 2011 10:50 pm
Location: Belgium (French speaking)
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, X8, X9, 2018, 2019

Re: How can I change the color of the background in an image

Postby Jean-Luc » Fri Aug 10, 2018 2:14 pm

hartpaul wrote:Also similar to Jean Luc
1. New raster layer, fill with that vanilla color
2. Change Blend mode to Darken

I tried but don't get the expected result. I'm missing something ? :(
http://www.paintshoppro.eu
Installed PSP Ultimate: X7, X8, X9, 2018 and 2019.
Jean-Luc
 
Posts: 901
Joined: Sat Oct 22, 2011 10:50 pm
Location: Belgium (French speaking)
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, X8, X9, 2018, 2019

Re: How can I change the color of the background in an image

Postby Joelle » Fri Aug 10, 2018 2:24 pm

Blend-Mode-Darken.jpg


I use PSPX9 :-)

Joëlle
Joëlle
(PSPX9 )
Joelle
 
Posts: 1725
Joined: Wed Apr 02, 2008 10:12 am
Location: UK
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Asus Prime B350M-A
processor: AMD Ryzen 5 1500 Quad-Core
ram: 16 GB RAM
Video Card: NVidia GeForce GTX 1050
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: Samsung
Corel programs: PaintShop Pro X9

Re: How can I change the color of the background in an image

Postby hartpaul » Fri Aug 10, 2018 3:17 pm

Jean-Luc wrote:
hartpaul wrote:Also similar to Jean Luc
1. New raster layer, fill with that vanilla color
2. Change Blend mode to Darken

I tried but don't get the expected result. I'm missing something ? :(


darken blend.jpg


Multiply does not work as well because it darkens all non white pixels . It multiplied the values of the pixels in the top layer by the values of the pixels in the lower layer and divides by 255.
If top layer is a and bottom layer b and considering only the red channels for each pixel
layer a = R 255, Layer b = R255
255 x 255 / 255 = 255 so pixel value is unchanged - this meanss if the Green and blue are also 255 (all three = 255 = white ) then there is no change to a white pixel

for a mid pixel a =R 128 , b = R 128 then 128 x 128 /255 = approx 64 so that pixel is darkened.

for a dark pixel a = R 0 , b= R 0 then 0 x 0 / 255 = 0 so if the blue and green are also 0 then there is no change in all three and resultant color is black

So Multiply leaves coresponding white and black pixels alone but darkens all others.

In the case of Darken the corresponding pixel values for each channel on layer a and layer b are compared and the darkest one used. This is the lowesrt value pixel in each case.
So for the white area of the logo the values for a pixel are R 255, G 255, B 255 and for the vanilla colored pixel above it R 251, G 244, B 225. So when it compares the red channel 255 v 251 the 251 wins so the effect is theto change all white areas to R 251, G 244, B 225. ie white becomes vanilla.
Last edited by hartpaul on Fri Aug 10, 2018 3:41 pm, edited 1 time in total.
Systems XP, Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 1803 Build 17134.285
hartpaul
Advisor
 
Posts: 2303
Joined: Tue Mar 20, 2012 3:38 pm
Location: Australia
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: AsusTex P7P55D
processor: IntelCore I 5 2.67 Ghz
ram: 8 Gb
Video Card: Nvidia GeForce GTX 460
sound_card: Nvidia High Definition Audio
Hard_Drive_Capacity: 1000 Gb
Monitor/Display Make & Model: AOC
Corel programs: PSP8,X2 to X9,2018,2019

Re: How can I change the color of the background in an image

Postby Jean-Luc » Fri Aug 10, 2018 3:34 pm

Thank you.
It is a translation problem in my French version : "Darken" is "Assombrir" in French and this is the word Corel used for the Burn mode ! ! ! !
Pfffff...
http://www.paintshoppro.eu
Installed PSP Ultimate: X7, X8, X9, 2018 and 2019.
Jean-Luc
 
Posts: 901
Joined: Sat Oct 22, 2011 10:50 pm
Location: Belgium (French speaking)
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, X8, X9, 2018, 2019


Return to Paint Shop Pro

Who is online

Users browsing this forum: tlveik and 9 guests