Back to project page AndroidCameraView.
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.
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); } }