Skip to first unread message

Andre Basel

unread,
Jul 21, 2015, 6:48:23 PM7/21/15
to MIT App Inventor Forum
I have a simple App. However the image gets set to the background with the wrong orientation. How to I rotate the image 90 degrees before applying it as the background?


Taifun

unread,
Jul 21, 2015, 7:18:04 PM7/21/15
to MIT App Inventor Forum
see these threads https://groups.google.com/forum/#!searchin/mitappinventortest/rotate$20image$2090
Taifun


Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.


Advice: Before posting, it's a good idea to search in this forum. Many others have likely run into problems similar to yours. How to search see screenshot.

                

Andre Basel

unread,
Jul 21, 2015, 11:12:46 PM7/21/15
to MIT App Inventor Forum
Hi, rather only reply if you have something useful to add. I spend much time on forums and searching on Google and am very aware of the search options. If you think I am wasting everyone's time simply ignore my post :)

Ghica

unread,
Jul 22, 2015, 2:18:13 AM7/22/15
to MIT App Inventor Forum
Be careful with what you say. Taifun is very knowledgeable about everything AI2, so if you want his help in the future you could stay polite. Your question is answered in the past. I am sure of that, because I spent a lot of time figuring it out.
Cheers, Ghica

Andre Basel

unread,
Jul 22, 2015, 4:22:32 AM7/22/15
to MIT App Inventor Forum
Alas life is too short for this sort of thing... I am happy to look elsewhere :) All I ask is that people don't assume one has not looked in the forums... I more constructive approach would be to say, "I does not look like you have used the forums yet, as a search using xxxx would have returned www.solution,com"

This is much more friendly and constructive ie while a gentle wrap over the knuckles it at least is helpful.. We are all knowledgeable in our own areas... 

Anyway thanks for the headsup :)

lets just leave this thread were it is... I am happy to look elsewhere... and if in future I actually do work out the solution I will post a reply... no hard or bitter feelings... simply a difference of opinions so all good :)

Ghica

unread,
Jul 22, 2015, 8:20:56 AM7/22/15
to MIT App Inventor Forum
What about the time of the people who give answers in this forum and who spend inumerable amounts of volunteer time to do this?
You should follow this forum for a while and you will find that many people ask questions that are asked many times before and many do not bother to try and understand something about AI2 before asking questions. So, if you are one of those rare persons that first did try to find out, then you should say so in your question.

Anyway, I am attaching an .aia 
It is about taking a picture with the camera of the phone and then turning it 90 degrees before displaying it on a canvas. Many phones (especially Samsung, but also my Sony) turn camera images sideways. It is a problem being worked on.

The only way to turn an image is by having it in a sprite, but sprites have the nasty habit to distort the image by using whatever height and width you have preset the sprite. The only way to know what the dimensions are is by using an image UI component. The trick is to make the image visible very briefly, to be able to figure out the height and width and the set the sprite. The trick for turning the sprite is to have a canvas that is wider than the screen, because the origin of the sprite is the top left corner, which will be ouside of the picture when turned. 

As the final exercise for you is the saving of the canvas and then using the saved file to set the screen background.
Cheers, Ghica.
myselfie.aia
Reply all
Reply to author
Forward
0 new messages