Blending two images
#4
(02-28-2023, 03:59 PM)Petr Wrote:
Code: (Select All)
Screen _NewImage(800, 600, 32)

image& = _LoadImage("1.png", 32)
W = _Width(image&): H = _Height(image&)

newimage& = _NewImage(W - 1, H - 1, 32)

_PutImage (W \ 2, 0)-(W, H), image&, newimage&, (W \ 2, 0)-(W, H) 'right half
_PutImage (0, 0)-(W \ 2, H), image&, newimage&, (W, 0)-(W \ 2, H) 'left half

_PutImage (100, 100), newimage& 'place done image

PutImage is enought for this use.

Thank you Petr... I tried your code with my image, and this is the output:

[Image: salida.png]

This is not what I am looking for... Sad


[Image: tam1-4.png]

This is my original image. I would like to paint two of them very close without problems. I don't know if it is possible in QB64... anyway thank you very much.
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: 4 Guest(s)