Welcome! Log In Create A New Profile

Advanced

[WD22] Change a color in a image

Posted by Michael Drechsel 
[WD22] Change a color in a image
September 30, 2023 05:07PM
Hi,

I have a 32 x 32 icon. It´s a arrow (black). How can I change the black color in a specific color programatically ?

regards Michael

regards Michael
Argus
Re: [WD22] Change a color in a image
October 05, 2023 09:10PM
There is a function transofmring an image in array... then you get all points of the array with value zero and change it to red
and then you go back to image and save

There was an example in windev doing something similar... I think it was a security camera example that was procesing the images to detect movement
Re: [WD22] Change a color in a image
October 09, 2023 07:00PM
Hi Argus,

I tried something similar. The problem is, that the image has some grey pixel at the edges, so all with zero in red looks not so good :-) But thx for your answer.

regards Michael
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: