Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Overlay 2 images and save the result.

Author
Message
Batmaster75
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 21st May 2020 19:30 Edited at: 22nd May 2020 18:59
Hi, guys.

Is it possible to overlay two bigger PNG images and then save result of this merge?
I have tried it already, but saved image is cropped because of smaller resolution of screen/window.
Images has resolution 1500x1500 pixels but my screen is only 3840x1024. The resulting image is cropped most likely because of size of backbuffer, or it is smaller because of AppGameKit is trying to fit it to the screen or window. (Depends of values of virtual resolution.)

Is there another possibility to solve this? Thanks for any idea.

Attachments

Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

Santman
13
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 21st May 2020 22:02
You could do it quote easily using render images and a simple shader....you would just mix the two image inputs by 0.5 to get an even split.

Your code above wont blend the sprites unless they are transparent, the second will just paste over it. Try turning transparency on using blending mode, and setting the colours for each to 125 for the alpha, then running your code and out putting the result without transparency.
Batmaster75
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 22nd May 2020 16:56
Sorry but I do not understand your idea. My snipped is running just fine. Result of merged images is as I wanted except of its size. Resolution of the saved image is only that big as big is screen resolution.

Please could you write it in code?
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 22nd May 2020 22:19 Edited at: 22nd May 2020 22:50
This post has been marked by the post author as the answer.

Attachments

Login to view attachments
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 22nd May 2020 23:57
@Qugurun: What app is that dialog from?
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 23rd May 2020 02:48 Edited at: 23rd May 2020 02:50
@blink0k, Adobe Photoshop CC 2019.
I showed this dialog as a means of obtaining information about the image.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 23rd May 2020 02:52 Edited at: 23rd May 2020 02:54
Ok. Thanks matey.
Lovely artwork on your instagram btw
Batmaster75
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 23rd May 2020 05:55
To Qugurun:

Works great and it is exactly what I wanted.
One is still learning.

Thank you very much for your effort and your time.

Login to post a reply

Server time is: 2024-11-22 04:28:07
Your offset time is: 2024-11-22 04:28:07