Virtual camera & landscape mode

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
simon.schvartzman
Posts: 474
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Virtual camera & landscape mode

Post by simon.schvartzman » Mon Jul 10, 2017 7:34 pm

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
Attachments
Camera4.livecode.zip
(12.67 KiB) Downloaded 101 times
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply

Return to “Talking LiveCode”