Page 1 of 1

Virtual camera & landscape mode

Posted: Mon Jul 10, 2017 7:34 pm
by simon.schvartzman
Hi team, this should be very simple but after several hours trying to figure it out myself I gave up and here I'm asking for help.

My goal:
- application will work on "Landscape Left" only
- app has only two fields, a command button and an Image field
- when user press the button it opens the virtual camera and the image is to appear on the Image field

My problem:
- the image appears rotated 90 degrees

The code is very simple (attached):

Code: Select all

on startUp
   mobileSetAllowedOrientations "landscape left"
end startUp

on mouseUp
   -- set the virtual camera
   cameraControlCreate"myFirstCamera"
   cameraControlSet "myFirstCamera", "device", "rear"
   cameraControlSet "myFirstCamera", "rect", the rect of img "Img1" 
   cameraControlSet "myFirstCamera", "visible", true
end mouseUp
What am I missing?

Thanks