Canvas2image plugin black image

Get help using Construct 2

Post » Mon Aug 01, 2016 4:17 pm

I'm using the Cordova Canvas2image plugin to take snapshots of the canvas and downloading an image. It works great when I try an android build, but on iOS it just saves a black image. Any ideas on why that could be?
B
10
S
3
Posts: 62
Reputation: 774

Post » Tue Aug 02, 2016 8:13 am

Oh, and I use XDK to make the build, if that matters. No one got any idea?
B
10
S
3
Posts: 62
Reputation: 774

Post » Tue Aug 02, 2016 9:53 am

The whole screen actually turns black for a second, when I push the button and the plugin captures the canvas. It's so weird! And I can't find anyone that has the same problem when I google it.
B
10
S
3
Posts: 62
Reputation: 774

Post » Fri Aug 05, 2016 3:49 pm

Hi,
Sorry while I can't help you specifically....
I have found that building using Canvas for IOS (instead of Webview) gives a black screen - I think its related to the fact that at that point maybe your app becomes a canvas app to take the pic?

There is also a built-in canvas snapshot event in C2 itself, you could try that....?
B
6
S
1
Posts: 32
Reputation: 476

Post » Fri Aug 05, 2016 3:55 pm

Hmm I'm not sure what canvas/webview means. Is that some setting I'm unaware of?
Yeah the built in canvas snapshot does absolutely nothing when I press the button unfortunaly :(
B
10
S
3
Posts: 62
Reputation: 774


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 10 guests