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...?
Thank you!
Check out this thread
construct.net/en/forum/construct-3/how-do-i-8/drawing-canvas-saved-png-163451
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!
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
Develop games in your browser. Powerful, performant & highly capable.
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!
https://1drv.ms/u/s!AmNDfP3N-nupprUZjvBru4u3C9cxGg?e=KNUeth
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!