Image taken from camera rotates when posted on canvas

155 views
Skip to first unread message

Pat Ancheta

unread,
Dec 26, 2015, 2:27:46 AM12/26/15
to MIT App Inventor Forum
Hi folks,

Newbie here.

Am working a project wherein a smartphone will be connected to a microscope via an adapter (smartphone camera on the microscope lens). In line with this am creating an App that will help in terms of measurement.

My problem is that when I take a picture, the picture rotates when posted on the canvas. How can I set the program such that this is avoided? 

Thank you so much and more power!

Regards,
Pat

Scott Ferguson

unread,
Dec 26, 2015, 3:00:42 AM12/26/15
to MIT App Inventor Forum
Try making an ImageSprite the size of the Canvas and setting the ImageSprite Picture property to the image instead.
You can rotate an ImageSprite +|- 90 degrees as needed with the ImageSprite Heading property if ImageSprite Rotates is enabled.
That should work best for a square Canvas and ImageSprite.
---
sf

Pat Ancheta

unread,
Dec 27, 2015, 6:08:06 AM12/27/15
to MIT App Inventor Forum
Thanks Scott for the advise. Will try this one out. Another option am looking at is a re-layout in landscape mode (fixed position).

Regards,
Pat
Reply all
Reply to author
Forward
0 new messages