Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hey, everyone!I need some help with this one...
What would be the the best way to achieve this task?
Export/save an 1080x1920 image from a 1280x720 layout?
Snapshot, Drawing canvas...?
Check out this thread
Thank you very much for your reply.
Ive checked your link and the documentation but im still struggling to understand how to use the pixelScale expression. This is the first time I use the canvas object and since i unfortunately am not able to solve the problem with all information i have found and you have provided so far, i would really appreciate if you could be more clear in telling what should be done in this case. Thanks!
Develop games in your browser. Powerful, performant & highly capable.
I think you need to resize the DrawingCanvas object to 1080x1920, either multiplied or divided by DrawingCanvas.pixelScale
Resize the sprite to the same size and paste it on the canvas. Then save the canvas image:
DrawingCanvas Save Image
System Wait for previous action to complete
Browser invoke download of DrawingCanvas.SavedImageURL
ok let me see if i understood you correctly. you are saying that what i need to do is resize the drawingcanvas object to 1080x1920, either multiply or divide it by the expression DrawingCanvas.pixelScale and then scaling out the image to fit the new DrawingCanvas object size? Since we couldn't fit the new object sizes on a screen with a smaller resolution (1280x720), should we resize the layout to a higher resolution as well? Im still getting some really weird results... Could you please take a look at the project file if you have some free time? Thanks!
You need to multiply by that expression, and add a small delay before "Save image" action - because pasting a large image may take a few ticks.
The result in my case was an image with resolution 1081x1922. Which is pretty close, but I don't know how to make it exactly 1080x1920..
You are right! multiplying by the expression im getting a pretty close result too (1081 × 1920) but not the exact dimensions. I will drop the updated "working" project here hope it can help someone to fin d a solution. Thank you very much for your help!