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; /*from www . j a v a 2 s.c om*/ import android.graphics.Bitmap.CompressFormat; public enum PictureType { JPEG, PNG; public CompressFormat toFormat() { switch (this) { case JPEG: return CompressFormat.JPEG; case PNG: return CompressFormat.PNG; default: break; } return null; } }