How do I save a snapshot from webcam to hard drive

Get help using Construct 2

Post » Mon Oct 05, 2015 11:17 am

Hi, i need to save to a pic taken with the webcam in game to hhd and reuse it, is there anyway? ive been using webcam.snapshoturl but i dont know how to save that file or sprite.

Thanks
B
4
S
1
Posts: 33
Reputation: 439

Post » Wed Oct 07, 2015 1:44 pm

I think you need to make new layout by size of picture, paste there your picture and do Snapshot canvas action. Then you can reuse it as you want.
Here is what is Snapshot Canvas
CanvasSnapshot
Contains the resulting image from a Snapshot canvas action after On canvas snapshot has run. (Note this expression is not available immediately after the Snapshot canvas action - you can only use it after On canvas snapshot triggers.) The expression returns a data URI of the image file. This can be loaded in to a Sprite or Tiled Background object via Load image from URL, sent to a server or stored locally, or opened with the Browser object in a new tab to save to disk.
B
9
S
1
Posts: 65
Reputation: 861

Post » Thu Oct 08, 2015 10:55 pm

Thanks @madscientist, ive solved using localstorage, some variables and snapshoturl.
B
4
S
1
Posts: 33
Reputation: 439


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider] and 10 guests