Package-level declarations

Functions

Link copied to clipboard
Link copied to clipboard
fun calculateInSampleSize(options: BitmapFactory.Options, reqWidth: Int, reqHeight: Int): Int
Link copied to clipboard

USAGE img.setOnTouchListener { v, event -> val color = decodeActionDownEvent(v,event, img.toBitmap())

Link copied to clipboard
fun decodeImageFileEx(path: String, maxSize: Int = 0, canvasHandler: Canvas.() -> Unit? = null): Bitmap?

decode image and apply correct rotation according to the exif orientation tag use Context.decodeImageFileEx, to support content:// uris

Link copied to clipboard
fun Context.decodeImageFileEx(uri: Uri, maxSize: Int = 0, canvasHandler: Canvas.() -> Unit? = null): Bitmap?

same as decodeImageFileEx, but uses FileDescriptors to access the files

Link copied to clipboard
fun decodeSampledBitmapFromFile(fileName: String, reqWidth: Int, reqHeight: Int): Bitmap
Link copied to clipboard
@RequiresPermission(value = "android.permission.CAMERA")
fun Activity.dispatchTakePictureIntent(REQUEST_IMAGE_CAPTURE: Int = 313, photoFileCallback: (file: File) -> Unit = {})
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard