getBitmap
fun getBitmap(context: Context, correctOrientation: Boolean, opts: BitmapFactory.Options? = null): Bitmap?
Transforms the image to a bitmap.
Parameters
context
required to transform YUV formatted images.
correctOrientation
if true, will be transformed to have the correct orientation. The resulting image might be landscape or portrait. Else will be returned as received from the OS and the exif should be stored with it.
opts
if resizing is required, provide opts.