Groups
Groups
Sign in
Groups
Groups
MIT App Inventor Forum
Conversations
Labels
About
Send feedback
Help
How to remove a picture from the canvas using a button?
348 views
another-browser
general-questions-about-app-inventor-programming
mit-appinventor-2
other-operating-system
phonetablet-with-the-wifi
school-network
Skip to first unread message
Jacob Butchko
unread,
Sep 17, 2015, 6:38:46 PM
9/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MIT App Inventor Forum
Hi, I've made the "Digital Doodle" app and I'd like to improve it by adding a button that would remove the picture from the canvas. I've done so far:
When clearbutton .Click
do set Canvas1 . Background Image to
Italo
unread,
Sep 17, 2015, 8:38:06 PM
9/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MIT App Inventor Forum
Use the CANVAS CLEAR block
SteveJG
unread,
Sep 17, 2015, 8:38:48 PM
9/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mitappinv...@googlegroups.com
Instead try Canvas1.Clear
This assumes you did not actually set a Canvas1.BackgroundImage with code.
http://ai2.appinventor.mit.edu/reference/components/animation.html#Canvas
Methods
Clear()
Clears anything drawn on this Canvas but not any background color or image.
Regards,
Steve
Reply all
Reply to author
Forward
0 new messages