Blending two images
#9
In case anyone is interested, I am going to try to explain in my painful English what I have finally done to solve my problem.

I read the glow PNG and put it in a new image (long) variable (I will call it "source").
If this image's width is (i.e.) 100x100 pixels, I create a 2-dimension array that is 150x100 positions (because I'm going to paste one glow near to the other). I will call this array "destiny".

I read for the first time "source" image pixel by pixel with POINT, and I paste these values onto "destiny" array.
I read again "source" image, and I compare the values of "destiny" array located 50 positions to the right. From both valors, I paste the maximum one onto "destiny". 

Finally, i read "destiny" array pixel by pixel, and I write them into another image variable, and then I put this image on the screen.

I hope I have explained myself well... this is my final result, and I like it Smile


[Image: Captura-de-pantalla-2023-03-03-084752.png]
10 PRINT "Hola! Smile"
20 GOTO 10
Reply


Messages In This Thread
Blending two images - by Ikerkaz - 02-28-2023, 09:21 AM
RE: Blending two images - by bplus - 02-28-2023, 02:53 PM
RE: Blending two images - by Petr - 02-28-2023, 03:59 PM
RE: Blending two images - by Ikerkaz - 02-28-2023, 04:23 PM
RE: Blending two images - by bplus - 02-28-2023, 05:41 PM
RE: Blending two images - by TerryRitchie - 02-28-2023, 05:59 PM
RE: Blending two images - by Ikerkaz - 02-28-2023, 07:03 PM
RE: Blending two images - by TerryRitchie - 02-28-2023, 07:21 PM
RE: Blending two images - by Ikerkaz - 03-03-2023, 07:49 AM
RE: Blending two images - by Ikerkaz - 03-03-2023, 09:23 AM



Users browsing this thread: 2 Guest(s)