Dylan McIntyre 8 years ago
commit ac61100add
  1. 2
      README.md
  2. 8
      camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java

@ -55,7 +55,7 @@ Try out all the unique features using the CameraKit Demo from the Google Play st
Add __CameraKit__ to the dependencies block in your `app` level `build.gradle`: Add __CameraKit__ to the dependencies block in your `app` level `build.gradle`:
```groovy ```groovy
compile 'com.flurgle:camerakit:0.9.12' compile 'com.flurgle:camerakit:0.9.13'
``` ```
## Usage ## Usage

@ -343,11 +343,9 @@ public class Camera1 extends CameraImpl {
getCaptureResolution().getWidth(), getCaptureResolution().getWidth(),
getCaptureResolution().getHeight() getCaptureResolution().getHeight()
); );
int rotation = (calculateCameraRotation(mDisplayOrientation)
mCameraParameters.setRotation( + (mFacing == CameraKit.Constants.FACING_FRONT ? 180 : 0) ) % 360;
calculateCameraRotation(mDisplayOrientation) mCameraParameters.setRotation(rotation);
+ (mFacing == CameraKit.Constants.FACING_FRONT ? 180 : 0)
);
setFocus(mFocus); setFocus(mFocus);
setFlash(mFlash); setFlash(mFlash);

Loading…
Cancel
Save