canvas size won't change correctly

Get help using Construct 2

Post » Sun Jul 17, 2016 12:25 pm

So I'm trying to take a snapshot of part of the canvas, and then download it. I actually want it to download to the gallery on the phone/ipad when you use it as an app later, but I can't even get the snapshot to look right, so first I need help to solve this weird thing.

I have used this code: Image
But the image that downloads always get the dimensions 1920x911px no matter what I do! So strange. I don't have any other code that tells the canvas to change it's size or anything, so I don't understand why it does that. I can't upload the capx here because it's a big project and kind of secret. And when I made a new project and try this with dummy images, it works!
Just thought that maybe someone has an idea on why it does this strange thing?
Thanks!
B
10
S
3
Posts: 62
Reputation: 774

Post » Sun Jul 17, 2016 12:29 pm

Forgot to say that the actual size of the object "snapshotarea" is 1140x1440px
B
10
S
3
Posts: 62
Reputation: 774

Post » Sun Jul 17, 2016 2:52 pm

Ok, I changed the scaling from Scale inner to letterbox scale, and then it works.. But as I understand it, it's scale inner I should use so that it works will all different screen sizes later when I export it? Hm..
B
10
S
3
Posts: 62
Reputation: 774


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests