Goal:
Now that we have the ability to take a picture, we need to do something with the picture we take.
The following code will take the picture we take and set it as the background image of our Canvas.
Steps:
- Under the section labeled Blocks select Camera1.
- Grab and place the block labeled “when Camera1.AfterPicture”.
- Under Blocks select Canvas1.
- Grab and place the block labeled “set Canvas1.BackgroundColor”.
- Change “BackgroundColor” to say “BackgroundImage”.
- On the “when Camera1.AfterPicture” block, hover your mouse over “image”.
- Then grab the “get image” block and place it inside the “set Canvas1.BackgroundImage” block.