mit-app-inventor

ImageSize

About this app

The ImageSize app demonstrates the delay between changing the size of an Image or Canvas and the dimensions actually changing. Reset to reset the image. Toggle to toggle the images and display dimensions. Resize to resize the image to full width / height.

Code

ImageSize blocks

Moral of this story: Make sure any Image or Canvas background images are of the same size so the delay won’t affect the size or put a Clock delay in line with any background-image changes before accessing Width and Height properties.

Designer

All components retain their default properties, β€” except Width and Height set to Fill parent... where necessary to center UX components.


πŸ”— permalink, πŸ”© repository, and MIT AI2 logo .AIA for this page.