Android Open Source - AndroidCameraView Thumbnail






From Project

Back to project page AndroidCameraView.

License

The source code is released under:

MIT License

If you think the Android project AndroidCameraView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.tatuas.android.cameraview;
/*ww w  .  j a  v a2 s  .  co  m*/
import android.graphics.Bitmap.CompressFormat;

public class Thumbnail extends PictureMaker {
    private int thumbSizeScale = 1;
    private CompressFormat format = CompressFormat.JPEG;
    private int quality = 100;

    public Thumbnail(String path, int sizeScale, int rotation, CameraType cameraType) {
        super(path, rotation, cameraType.equals(CameraType.FRONT));
        this.thumbSizeScale = sizeScale;
    }

    public void setQuality(int scale) {
        this.quality = scale;
    }

    public void setFormat(CompressFormat format) {
        this.format = format;
    }

    public boolean make(byte[] data) {
        return make(data, thumbSizeScale, quality, format);
    }
}




Java Source Code List

com.tatuas.android.cameraview.AfterShutterListener.java
com.tatuas.android.cameraview.BeforeShutterListener.java
com.tatuas.android.cameraview.CameraFailedListener.java
com.tatuas.android.cameraview.CameraLayout.java
com.tatuas.android.cameraview.CameraType.java
com.tatuas.android.cameraview.CameraView.java
com.tatuas.android.cameraview.Options.java
com.tatuas.android.cameraview.PictureMaker.java
com.tatuas.android.cameraview.PictureSize.java
com.tatuas.android.cameraview.PictureType.java
com.tatuas.android.cameraview.ShutterFailedListener.java
com.tatuas.android.cameraview.Shutter.java
com.tatuas.android.cameraview.Thumbnail.java
com.tatuas.android.cameraview.Util.java
com.tatuas.android.cameraview.sample.CameraLayoutSampleActivity.java
com.tatuas.android.cameraview.sample.CameraViewSampleActivity.java