User Manual
Print

Snapshot

Take Photo

				
					{"blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable>photo1</variable></variables><block type=\"Camera_takePhoto\" disabled=\"true\" x=\"158\" y=\"293\"/></xml>"}
				
			

This is used to take the photo from the camera.

Parameters: N/A

Output: Image
Sample code:

				
					{"blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"Camera_showPhoto\"><value name=\"photo\"><block type=\"Camera_takePhoto\"/></value></block></statement></block></xml>"}
				
			

The output: