10-11-2011 12:39 AM
10-11-2011 10:00 AM
Nice catch! I was doing the same thing as you (trying to rotate the raw bytes). Once I saved the image first, it started rotating correctly. I have a couple more issues:
First, are you converting the image back into a byte array after you rotate it as a bitmap? I need to do this, and unfortunately I don't see any way with the RIM API.
Second, have you had issues rotating the device while the camera is open? When I do this, the screen goes white. If I rotate the device BEFORE opening the camera, it will show the camera view, except as a smaller window (as opposed to full screen).
Third, are you using two different sets of camera code (one for 5.0 and one for 6.0)? I'm finding that I am going to have to do this, mostly because the code for the camera demo on 5.0 which determines camera encodings does not seem to work on the 6.0 devices...
10-11-2011 07:08 PM
10-11-2011 11:44 PM
Thanks for your help.
Just as an FYI, I was able to get the encodings working on all devices by using the code from the camerademo provided in the 6.0 SDK. I had to remove any lines of code that weren't in the 5.0 API, but it is nothing essential (mostly just menu items, focus control, etc.)